diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache index 72ee1b8cb5b..6b2fc077bb5 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache @@ -32,6 +32,7 @@ import io.virtualan.annotation.VirtualService; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; {{/jdk8-no-delegate}} +import org.springframework.lang.Nullable; {{^useResponseEntity}} import org.springframework.http.HttpStatus; {{/useResponseEntity}} diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/apiController.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/apiController.mustache index a5fc96cab15..abd66444e52 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/apiController.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/apiController.mustache @@ -21,6 +21,7 @@ import io.swagger.annotations.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; {{#useResponseEntity}} import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/apiDelegate.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/apiDelegate.mustache index 20ed2e4ac0d..0af0e75823d 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/apiDelegate.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/apiDelegate.mustache @@ -7,6 +7,7 @@ import org.springframework.http.MediaType; {{#useResponseEntity}} import org.springframework.http.ResponseEntity; {{/useResponseEntity}} +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; {{#reactive}} diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache index 69d36f1c3b0..ea2019e65c4 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/bodyParams.mustache @@ -1 +1 @@ -{{#isBodyParam}}{{>paramDoc}}{{#useBeanValidation}} @Valid{{>beanValidationBodyParams}}{{/useBeanValidation}} @RequestBody{{^required}}(required = false){{/required}} {{^reactive}}{{>optionalDataType}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}} {{paramName}}{{/isBodyParam}} \ No newline at end of file +{{#isBodyParam}}{{>paramDoc}}{{#useBeanValidation}} @Valid{{>beanValidationBodyParams}}{{/useBeanValidation}} @RequestBody{{^required}}(required = false){{/required}} {{^reactive}}{{>nullableAnnotation}}{{>optionalDataType}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}} {{paramName}}{{/isBodyParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/cookieParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/cookieParams.mustache index 74a837988f3..a255b5c7daf 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/cookieParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/cookieParams.mustache @@ -1 +1 @@ -{{#isCookieParam}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{>paramDoc}} @CookieValue(name = "{{baseName}}"{{^required}}, required = false{{/required}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}){{>dateTimeParam}} {{>optionalDataType}} {{paramName}}{{/isCookieParam}} \ No newline at end of file +{{#isCookieParam}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{>paramDoc}} @CookieValue(name = "{{baseName}}"{{^required}}, required = false{{/required}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}){{>dateTimeParam}} {{>nullableAnnotation}}{{>optionalDataType}} {{paramName}}{{/isCookieParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache index a9b35fe854b..644da256005 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/headerParams.mustache @@ -1 +1 @@ -{{#isHeaderParam}}{{#vendorExtensions.x-field-extra-annotation}}{{{vendorExtensions.x-field-extra-annotation}}} {{/vendorExtensions.x-field-extra-annotation}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{>paramDoc}} @RequestHeader(value = "{{baseName}}", required = {{#required}}true{{/required}}{{^required}}false{{/required}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}){{>dateTimeParam}} {{>optionalDataType}} {{paramName}}{{/isHeaderParam}} \ No newline at end of file +{{#isHeaderParam}}{{#vendorExtensions.x-field-extra-annotation}}{{{vendorExtensions.x-field-extra-annotation}}} {{/vendorExtensions.x-field-extra-annotation}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{>paramDoc}} @RequestHeader(value = "{{baseName}}", required = {{#required}}true{{/required}}{{^required}}false{{/required}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}){{>dateTimeParam}} {{>nullableAnnotation}}{{>optionalDataType}} {{paramName}}{{/isHeaderParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-http-interface/api.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-http-interface/api.mustache index f933b433c37..1ffd76344cc 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-http-interface/api.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-http-interface/api.mustache @@ -13,6 +13,7 @@ import org.springframework.http.HttpStatus; {{#useResponseEntity}} import org.springframework.http.ResponseEntity; {{/useResponseEntity}} +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache index 99ccd36578c..f525c6b3e52 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache @@ -154,7 +154,7 @@ public {{>sealed}}class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}} {{^lombok.Data}} {{! begin feature: fluent setter methods }} - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullableAnnotation}}{{{datatypeWithEnum}}} {{name}}) { {{#openApiNullable}} this.{{name}} = {{#isNullable}}JsonNullable.of({{/isNullable}}{{#useOptional}}{{^required}}{{^isNullable}}{{^isContainer}}Optional.of{{#optionalAcceptNullable}}Nullable{{/optionalAcceptNullable}}({{/isContainer}}{{/isNullable}}{{/required}}{{/useOptional}}{{name}}{{#isNullable}}){{/isNullable}}{{#useOptional}}{{^required}}{{^isNullable}}{{^isContainer}}){{/isContainer}}{{/isNullable}}{{/required}}{{/useOptional}}; {{/openApiNullable}} @@ -254,7 +254,7 @@ public {{>sealed}}class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}} {{#deprecated}} @Deprecated {{/deprecated}} - public {{>nullableDataTypeBeanValidation}} {{getter}}() { + public {{>nullableAnnotation}}{{>nullableDataTypeBeanValidation}} {{getter}}() { return {{name}}; } {{/lombok.Getter}} @@ -271,7 +271,7 @@ public {{>sealed}}class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}} {{#deprecated}} @Deprecated {{/deprecated}} - public void {{setter}}({{>nullableDataType}} {{name}}) { + public void {{setter}}({{>nullableAnnotation}}{{>nullableDataType}} {{name}}) { this.{{name}} = {{name}}; } {{/lombok.Setter}} diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache index b8226381ee1..214790318c7 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/queryParams.mustache @@ -1 +1 @@ -{{#isQueryParam}}{{#vendorExtensions.x-field-extra-annotation}}{{{vendorExtensions.x-field-extra-annotation}}} {{/vendorExtensions.x-field-extra-annotation}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{>paramDoc}}{{#useBeanValidation}} @Valid{{/useBeanValidation}}{{^isModel}} @RequestParam(value = {{#isMap}}""{{/isMap}}{{^isMap}}"{{baseName}}"{{/isMap}}{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}){{/isModel}}{{>dateTimeParam}}{{#isDeprecated}} @Deprecated{{/isDeprecated}} {{>optionalDataType}} {{paramName}}{{/isQueryParam}} \ No newline at end of file +{{#isQueryParam}}{{#vendorExtensions.x-field-extra-annotation}}{{{vendorExtensions.x-field-extra-annotation}}} {{/vendorExtensions.x-field-extra-annotation}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{>paramDoc}}{{#useBeanValidation}} @Valid{{/useBeanValidation}}{{^isModel}} @RequestParam(value = {{#isMap}}""{{/isMap}}{{^isMap}}"{{baseName}}"{{/isMap}}{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}{{#defaultValue}}, defaultValue = "{{{.}}}"{{/defaultValue}}){{/isModel}}{{>dateTimeParam}}{{#isDeprecated}} @Deprecated{{/isDeprecated}} {{>nullableAnnotation}}{{>optionalDataType}} {{paramName}}{{/isQueryParam}} \ No newline at end of file diff --git a/samples/client/petstore/spring-cloud-auth/src/main/java/org/openapitools/api/SomeApi.java b/samples/client/petstore/spring-cloud-auth/src/main/java/org/openapitools/api/SomeApi.java index b9da9884935..8c41d0fca55 100644 --- a/samples/client/petstore/spring-cloud-auth/src/main/java/org/openapitools/api/SomeApi.java +++ b/samples/client/petstore/spring-cloud-auth/src/main/java/org/openapitools/api/SomeApi.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/client/petstore/spring-cloud-date-time/src/main/java/org/openapitools/api/DefaultApi.java b/samples/client/petstore/spring-cloud-date-time/src/main/java/org/openapitools/api/DefaultApi.java index 67f33aa1f6a..e4ead708307 100644 --- a/samples/client/petstore/spring-cloud-date-time/src/main/java/org/openapitools/api/DefaultApi.java +++ b/samples/client/petstore/spring-cloud-date-time/src/main/java/org/openapitools/api/DefaultApi.java @@ -11,6 +11,7 @@ import java.time.OffsetDateTime; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/api/PetApi.java index 41eb2ed6e21..d96de2a8381 100644 --- a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/api/PetApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -96,7 +97,7 @@ public interface PetApi { ResponseEntity deletePet( @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId, - @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) String apiKey + @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ); diff --git a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/api/StoreApi.java index 0e2e91b1ec7..b41c0f01cc9 100644 --- a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/api/StoreApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/api/UserApi.java index 122a44ba7bc..7f85e2e1e64 100644 --- a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/api/UserApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Category.java index 38f132ba454..52ef92b93e2 100644 --- a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Category.java @@ -27,7 +27,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Category { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Category { @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/ModelApiResponse.java index fa47f8d98c3..62273b74b4c 100644 --- a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Order.java index 4dfa9dd4132..2e699af47e2 100644 --- a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Order.java @@ -78,7 +78,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -90,15 +90,15 @@ public class Order { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -110,15 +110,15 @@ public class Order { @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -130,15 +130,15 @@ public class Order { @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -150,15 +150,15 @@ public class Order { @Valid @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -170,11 +170,11 @@ public class Order { @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Pet.java index 4cc370fb211..0ae83e21c4c 100644 --- a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Pet.java @@ -93,7 +93,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public class Pet { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -125,11 +125,11 @@ public class Pet { @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -215,7 +215,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -227,11 +227,11 @@ public class Pet { @Schema(name = "status", description = "pet status in the store", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Tag.java index 69fd62f84e4..4c6df0f0931 100644 --- a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/User.java index b6206a76796..08a3518b7b4 100644 --- a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/api/PetApi.java index d89e2d495f5..ee2d2c0a723 100644 --- a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/api/PetApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.Pet; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -95,7 +96,7 @@ public interface PetApi { ResponseEntity deletePet( @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId, - @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey + @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ); diff --git a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/api/StoreApi.java index 42a009aa64d..cb49fbc4f63 100644 --- a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/api/StoreApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.Order; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/api/UserApi.java index a089909442b..e491893f0a1 100644 --- a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/api/UserApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.User; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Category.java index d592426fd33..2ec3e3160af 100644 --- a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Category.java @@ -28,7 +28,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -40,15 +40,15 @@ public class Category { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -60,11 +60,11 @@ public class Category { @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/ModelApiResponse.java index 15d6da4ff22..7716612070f 100644 --- a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -32,7 +32,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -44,15 +44,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -64,15 +64,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -84,11 +84,11 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Order.java index b01430954d1..dcb0f8b3b2c 100644 --- a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Order.java @@ -77,7 +77,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -89,15 +89,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -109,15 +109,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -129,15 +129,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -149,15 +149,15 @@ public class Order { @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -169,11 +169,11 @@ public class Order { @ApiModelProperty(value = "Order Status") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Pet.java index d9d967eceda..1c653622765 100644 --- a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Pet.java @@ -94,7 +94,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -106,15 +106,15 @@ public class Pet { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -126,11 +126,11 @@ public class Pet { @Valid @ApiModelProperty(value = "") @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -210,7 +210,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -224,7 +224,7 @@ public class Pet { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -232,7 +232,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Tag.java index 76c7c984abc..63bee335e33 100644 --- a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Tag.java @@ -28,7 +28,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -40,15 +40,15 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -60,11 +60,11 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/User.java index 68e44185f3f..e4214f70a6a 100644 --- a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/User.java @@ -40,7 +40,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -52,15 +52,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -72,15 +72,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -92,15 +92,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -112,15 +112,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -132,15 +132,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -152,15 +152,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -172,15 +172,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -192,11 +192,11 @@ public class User { @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/api/PetController.java b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/api/PetController.java index 2b22f9538ff..177afb2dc20 100644 --- a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/api/PetController.java +++ b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/api/PetController.java @@ -12,6 +12,7 @@ import org.openapitools.model.Pet; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -91,7 +92,7 @@ public interface PetController { ResponseEntity deletePet( @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId, - @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey + @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ); diff --git a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/api/StoreController.java b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/api/StoreController.java index e439bb6cbed..665a2e599c3 100644 --- a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/api/StoreController.java +++ b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/api/StoreController.java @@ -10,6 +10,7 @@ import org.openapitools.model.Order; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/api/UserController.java b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/api/UserController.java index f133f4e3126..dea969c13ea 100644 --- a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/api/UserController.java +++ b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/api/UserController.java @@ -10,6 +10,7 @@ import org.openapitools.model.User; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Category.java index 6a157168a41..ac617f57fc7 100644 --- a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Category.java @@ -28,7 +28,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -40,15 +40,15 @@ public class Category { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -60,11 +60,11 @@ public class Category { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/ModelApiResponse.java index 15d6da4ff22..7716612070f 100644 --- a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -32,7 +32,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -44,15 +44,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -64,15 +64,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -84,11 +84,11 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Order.java index b01430954d1..dcb0f8b3b2c 100644 --- a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Order.java @@ -77,7 +77,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -89,15 +89,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -109,15 +109,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -129,15 +129,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -149,15 +149,15 @@ public class Order { @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -169,11 +169,11 @@ public class Order { @ApiModelProperty(value = "Order Status") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Pet.java index 23fee253365..53ba6f1fd89 100644 --- a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Pet.java @@ -93,7 +93,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public class Pet { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -125,11 +125,11 @@ public class Pet { @Valid @ApiModelProperty(value = "") @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -209,7 +209,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -221,11 +221,11 @@ public class Pet { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Tag.java index 76c7c984abc..63bee335e33 100644 --- a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Tag.java @@ -28,7 +28,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -40,15 +40,15 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -60,11 +60,11 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/User.java index 68e44185f3f..e4214f70a6a 100644 --- a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/User.java @@ -40,7 +40,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -52,15 +52,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -72,15 +72,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -92,15 +92,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -112,15 +112,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -132,15 +132,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -152,15 +152,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -172,15 +172,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -192,11 +192,11 @@ public class User { @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java index d89e2d495f5..ee2d2c0a723 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.Pet; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -95,7 +96,7 @@ public interface PetApi { ResponseEntity deletePet( @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId, - @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey + @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ); diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java index 42a009aa64d..cb49fbc4f63 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.Order; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java index a089909442b..e491893f0a1 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.User; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java index d592426fd33..2ec3e3160af 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java @@ -28,7 +28,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -40,15 +40,15 @@ public class Category { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -60,11 +60,11 @@ public class Category { @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java index 15d6da4ff22..7716612070f 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -32,7 +32,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -44,15 +44,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -64,15 +64,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -84,11 +84,11 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java index b01430954d1..dcb0f8b3b2c 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java @@ -77,7 +77,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -89,15 +89,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -109,15 +109,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -129,15 +129,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -149,15 +149,15 @@ public class Order { @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -169,11 +169,11 @@ public class Order { @ApiModelProperty(value = "Order Status") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java index d9d967eceda..1c653622765 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java @@ -94,7 +94,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -106,15 +106,15 @@ public class Pet { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -126,11 +126,11 @@ public class Pet { @Valid @ApiModelProperty(value = "") @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -210,7 +210,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -224,7 +224,7 @@ public class Pet { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -232,7 +232,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java index 76c7c984abc..63bee335e33 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java @@ -28,7 +28,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -40,15 +40,15 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -60,11 +60,11 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java index 68e44185f3f..e4214f70a6a 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java @@ -40,7 +40,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -52,15 +52,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -72,15 +72,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -92,15 +92,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -112,15 +112,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -132,15 +132,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -152,15 +152,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -172,15 +172,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -192,11 +192,11 @@ public class User { @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/AnotherFakeApi.java index 09b2aa33c11..23bb96bce52 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.ClientDto; import org.springframework.http.HttpStatus; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java index f0cf0cd749b..2820a5f19f1 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java @@ -17,6 +17,7 @@ import org.openapitools.model.OuterCompositeDto; import org.openapitools.model.UserDto; import org.openapitools.model.XmlItemDto; import org.springframework.http.HttpStatus; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -64,7 +65,7 @@ public interface FakeApi { contentType = "application/json" ) Boolean fakeOuterBooleanSerialize( - @RequestBody(required = false) Boolean body + @RequestBody(required = false) @Nullable Boolean body ); @@ -83,7 +84,7 @@ public interface FakeApi { contentType = "application/json" ) OuterCompositeDto fakeOuterCompositeSerialize( - @RequestBody(required = false) OuterCompositeDto outerCompositeDto + @RequestBody(required = false) @Nullable OuterCompositeDto outerCompositeDto ); @@ -102,7 +103,7 @@ public interface FakeApi { contentType = "application/json" ) BigDecimal fakeOuterNumberSerialize( - @RequestBody(required = false) BigDecimal body + @RequestBody(required = false) @Nullable BigDecimal body ); @@ -121,7 +122,7 @@ public interface FakeApi { contentType = "application/json" ) String fakeOuterStringSerialize( - @RequestBody(required = false) String body + @RequestBody(required = false) @Nullable String body ); @@ -252,12 +253,12 @@ public interface FakeApi { contentType = "application/x-www-form-urlencoded" ) void testEnumParameters( - @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @RequestParam(value = "enum_form_string", required = false) String enumFormString ); @@ -285,9 +286,9 @@ public interface FakeApi { @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @RequestParam(value = "string_group", required = false) Integer stringGroup, - @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @RequestParam(value = "int64_group", required = false) Long int64Group + @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ); diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java index c0c741ede6e..12cbd7679ab 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.ClientDto; import org.springframework.http.HttpStatus; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/PetApi.java index d65052caf8e..6d4dc0a0ea1 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/PetApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.PetDto; import org.openapitools.model.ResponseObjectWithDifferentFieldNamesDto; import java.util.Set; import org.springframework.http.HttpStatus; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -60,7 +61,7 @@ public interface PetApi { ) void deletePet( @PathVariable("petId") Long petId, - @RequestHeader(value = "api_key", required = false) String apiKey + @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ); diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/StoreApi.java index 6e40d78ea38..9e4477ddd45 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/StoreApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.util.Map; import org.openapitools.model.OrderDto; import org.springframework.http.HttpStatus; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/UserApi.java index fe5c651cfc2..b49467a07d7 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/UserApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.time.OffsetDateTime; import org.openapitools.model.UserDto; import org.springframework.http.HttpStatus; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesAnyTypeDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesAnyTypeDto.java index 9ce9c72f88c..40e204116a1 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesAnyTypeDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesAnyTypeDto.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesAnyTypeDto { private @Nullable String name; - public AdditionalPropertiesAnyTypeDto name(String name) { + public AdditionalPropertiesAnyTypeDto name(@Nullable String name) { this.name = name; return this; } @@ -39,11 +39,11 @@ public class AdditionalPropertiesAnyTypeDto { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesArrayDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesArrayDto.java index ac8c3ef4735..1ae21edce75 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesArrayDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesArrayDto.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesArrayDto { private @Nullable String name; - public AdditionalPropertiesArrayDto name(String name) { + public AdditionalPropertiesArrayDto name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesArrayDto { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesBooleanDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesBooleanDto.java index 50ab29270e1..4d6bfb759bf 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesBooleanDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesBooleanDto.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesBooleanDto { private @Nullable String name; - public AdditionalPropertiesBooleanDto name(String name) { + public AdditionalPropertiesBooleanDto name(@Nullable String name) { this.name = name; return this; } @@ -39,11 +39,11 @@ public class AdditionalPropertiesBooleanDto { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesClassDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesClassDto.java index c0d40e01a7c..c0fb00586ee 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesClassDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesClassDto.java @@ -275,7 +275,7 @@ public class AdditionalPropertiesClassDto { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClassDto anytype1(Object anytype1) { + public AdditionalPropertiesClassDto anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -286,11 +286,11 @@ public class AdditionalPropertiesClassDto { */ @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } @@ -313,7 +313,7 @@ public class AdditionalPropertiesClassDto { this.anytype2 = anytype2; } - public AdditionalPropertiesClassDto anytype3(Object anytype3) { + public AdditionalPropertiesClassDto anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -324,11 +324,11 @@ public class AdditionalPropertiesClassDto { */ @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesIntegerDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesIntegerDto.java index 10253e3292c..eb3aa529193 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesIntegerDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesIntegerDto.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesIntegerDto { private @Nullable String name; - public AdditionalPropertiesIntegerDto name(String name) { + public AdditionalPropertiesIntegerDto name(@Nullable String name) { this.name = name; return this; } @@ -39,11 +39,11 @@ public class AdditionalPropertiesIntegerDto { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesNumberDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesNumberDto.java index f8d894f99fe..d89dc02ff32 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesNumberDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesNumberDto.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesNumberDto { private @Nullable String name; - public AdditionalPropertiesNumberDto name(String name) { + public AdditionalPropertiesNumberDto name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesNumberDto { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesObjectDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesObjectDto.java index 6df09a44e79..362f004ffc6 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesObjectDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesObjectDto.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesObjectDto { private @Nullable String name; - public AdditionalPropertiesObjectDto name(String name) { + public AdditionalPropertiesObjectDto name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesObjectDto { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesStringDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesStringDto.java index d71ca8bfb9d..a653f0a3cee 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesStringDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesStringDto.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesStringDto { private @Nullable String name; - public AdditionalPropertiesStringDto name(String name) { + public AdditionalPropertiesStringDto name(@Nullable String name) { this.name = name; return this; } @@ -39,11 +39,11 @@ public class AdditionalPropertiesStringDto { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ApiResponseDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ApiResponseDto.java index 49242582adc..fee8a26f95a 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ApiResponseDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ApiResponseDto.java @@ -28,7 +28,7 @@ public class ApiResponseDto { private @Nullable String message; - public ApiResponseDto code(Integer code) { + public ApiResponseDto code(@Nullable Integer code) { this.code = code; return this; } @@ -39,15 +39,15 @@ public class ApiResponseDto { */ @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ApiResponseDto type(String type) { + public ApiResponseDto type(@Nullable String type) { this.type = type; return this; } @@ -58,15 +58,15 @@ public class ApiResponseDto { */ @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ApiResponseDto message(String message) { + public ApiResponseDto message(@Nullable String message) { this.message = message; return this; } @@ -77,11 +77,11 @@ public class ApiResponseDto { */ @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/BigCatDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/BigCatDto.java index 6855ab673fb..a63b58de415 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/BigCatDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/BigCatDto.java @@ -73,7 +73,7 @@ public class BigCatDto extends CatDto { super(); } - public BigCatDto kind(KindEnum kind) { + public BigCatDto kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -84,11 +84,11 @@ public class BigCatDto extends CatDto { */ @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/CapitalizationDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/CapitalizationDto.java index e27517782d4..ae9c5082660 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/CapitalizationDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/CapitalizationDto.java @@ -34,7 +34,7 @@ public class CapitalizationDto { private @Nullable String ATT_NAME; - public CapitalizationDto smallCamel(String smallCamel) { + public CapitalizationDto smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -45,15 +45,15 @@ public class CapitalizationDto { */ @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public CapitalizationDto capitalCamel(String capitalCamel) { + public CapitalizationDto capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -64,15 +64,15 @@ public class CapitalizationDto { */ @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public CapitalizationDto smallSnake(String smallSnake) { + public CapitalizationDto smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -83,15 +83,15 @@ public class CapitalizationDto { */ @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public CapitalizationDto capitalSnake(String capitalSnake) { + public CapitalizationDto capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -102,15 +102,15 @@ public class CapitalizationDto { */ @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public CapitalizationDto scAETHFlowPoints(String scAETHFlowPoints) { + public CapitalizationDto scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -121,15 +121,15 @@ public class CapitalizationDto { */ @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public CapitalizationDto ATT_NAME(String ATT_NAME) { + public CapitalizationDto ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -140,11 +140,11 @@ public class CapitalizationDto { */ @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/CatDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/CatDto.java index 1cd32fa4034..6e60cde517b 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/CatDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/CatDto.java @@ -40,7 +40,7 @@ public class CatDto extends AnimalDto { super(); } - public CatDto declawed(Boolean declawed) { + public CatDto declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -51,11 +51,11 @@ public class CatDto extends AnimalDto { */ @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/CategoryDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/CategoryDto.java index c1d07153c2d..55a0832c806 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/CategoryDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/CategoryDto.java @@ -30,7 +30,7 @@ public class CategoryDto { super(); } - public CategoryDto id(Long id) { + public CategoryDto id(@Nullable Long id) { this.id = id; return this; } @@ -41,11 +41,11 @@ public class CategoryDto { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullableDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullableDto.java index d7b48f53ccc..40fc4ce2364 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullableDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullableDto.java @@ -32,7 +32,7 @@ public class ChildWithNullableDto extends ParentWithNullableDto { private @Nullable String otherProperty; - public ChildWithNullableDto otherProperty(String otherProperty) { + public ChildWithNullableDto otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -43,11 +43,11 @@ public class ChildWithNullableDto extends ParentWithNullableDto { */ @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ClassModelDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ClassModelDto.java index d14e0eae077..587ffef3ffb 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ClassModelDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ClassModelDto.java @@ -24,7 +24,7 @@ public class ClassModelDto { private @Nullable String propertyClass; - public ClassModelDto propertyClass(String propertyClass) { + public ClassModelDto propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -35,11 +35,11 @@ public class ClassModelDto { */ @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ClientDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ClientDto.java index bbbd994f253..fd7a849eab4 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ClientDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ClientDto.java @@ -24,7 +24,7 @@ public class ClientDto { private @Nullable String client; - public ClientDto client(String client) { + public ClientDto client(@Nullable String client) { this.client = client; return this; } @@ -35,11 +35,11 @@ public class ClientDto { */ @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/DogDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/DogDto.java index da71cf80357..521efd17608 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/DogDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/DogDto.java @@ -33,7 +33,7 @@ public class DogDto extends AnimalDto { super(); } - public DogDto breed(String breed) { + public DogDto breed(@Nullable String breed) { this.breed = breed; return this; } @@ -44,11 +44,11 @@ public class DogDto extends AnimalDto { */ @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/EnumArraysDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/EnumArraysDto.java index e6897313a39..5e85461537c 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/EnumArraysDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/EnumArraysDto.java @@ -101,7 +101,7 @@ public class EnumArraysDto { private List arrayEnum = new ArrayList<>(); - public EnumArraysDto justSymbol(JustSymbolEnum justSymbol) { + public EnumArraysDto justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -112,11 +112,11 @@ public class EnumArraysDto { */ @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/EnumTestDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/EnumTestDto.java index 3b113e40828..f20d8b48449 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/EnumTestDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/EnumTestDto.java @@ -182,7 +182,7 @@ public class EnumTestDto { super(); } - public EnumTestDto enumString(EnumStringEnum enumString) { + public EnumTestDto enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -193,11 +193,11 @@ public class EnumTestDto { */ @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -220,7 +220,7 @@ public class EnumTestDto { this.enumStringRequired = enumStringRequired; } - public EnumTestDto enumInteger(EnumIntegerEnum enumInteger) { + public EnumTestDto enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -231,15 +231,15 @@ public class EnumTestDto { */ @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTestDto enumNumber(EnumNumberEnum enumNumber) { + public EnumTestDto enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -250,15 +250,15 @@ public class EnumTestDto { */ @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTestDto outerEnum(OuterEnumDto outerEnum) { + public EnumTestDto outerEnum(@Nullable OuterEnumDto outerEnum) { this.outerEnum = outerEnum; return this; } @@ -269,11 +269,11 @@ public class EnumTestDto { */ @JsonProperty("outerEnum") - public OuterEnumDto getOuterEnum() { + public @Nullable OuterEnumDto getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnumDto outerEnum) { + public void setOuterEnum(@Nullable OuterEnumDto outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/FileDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/FileDto.java index 531b77586e2..f6328321ebb 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/FileDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/FileDto.java @@ -24,7 +24,7 @@ public class FileDto { private @Nullable String sourceURI; - public FileDto sourceURI(String sourceURI) { + public FileDto sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -35,11 +35,11 @@ public class FileDto { */ @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/FileSchemaTestClassDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/FileSchemaTestClassDto.java index 7a8507a1484..d87aee1b89f 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/FileSchemaTestClassDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/FileSchemaTestClassDto.java @@ -31,7 +31,7 @@ public class FileSchemaTestClassDto { private List files = new ArrayList<>(); - public FileSchemaTestClassDto file(FileDto file) { + public FileSchemaTestClassDto file(@Nullable FileDto file) { this.file = file; return this; } @@ -42,11 +42,11 @@ public class FileSchemaTestClassDto { */ @JsonProperty("file") - public FileDto getFile() { + public @Nullable FileDto getFile() { return file; } - public void setFile(FileDto file) { + public void setFile(@Nullable FileDto file) { this.file = file; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/FormatTestDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/FormatTestDto.java index f56d9dcc7ee..7c8ebbb5f6c 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/FormatTestDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/FormatTestDto.java @@ -62,7 +62,7 @@ public class FormatTestDto { super(); } - public FormatTestDto integer(Integer integer) { + public FormatTestDto integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -75,15 +75,15 @@ public class FormatTestDto { */ @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTestDto int32(Integer int32) { + public FormatTestDto int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -96,15 +96,15 @@ public class FormatTestDto { */ @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTestDto int64(Long int64) { + public FormatTestDto int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -115,11 +115,11 @@ public class FormatTestDto { */ @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -144,7 +144,7 @@ public class FormatTestDto { this.number = number; } - public FormatTestDto _float(Float _float) { + public FormatTestDto _float(@Nullable Float _float) { this._float = _float; return this; } @@ -157,15 +157,15 @@ public class FormatTestDto { */ @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTestDto _double(Double _double) { + public FormatTestDto _double(@Nullable Double _double) { this._double = _double; return this; } @@ -178,15 +178,15 @@ public class FormatTestDto { */ @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTestDto string(String string) { + public FormatTestDto string(@Nullable String string) { this.string = string; return this; } @@ -197,11 +197,11 @@ public class FormatTestDto { */ @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -224,7 +224,7 @@ public class FormatTestDto { this._byte = _byte; } - public FormatTestDto binary(org.springframework.core.io.Resource binary) { + public FormatTestDto binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -235,11 +235,11 @@ public class FormatTestDto { */ @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -262,7 +262,7 @@ public class FormatTestDto { this.date = date; } - public FormatTestDto dateTime(OffsetDateTime dateTime) { + public FormatTestDto dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -273,15 +273,15 @@ public class FormatTestDto { */ @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTestDto uuid(UUID uuid) { + public FormatTestDto uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -292,11 +292,11 @@ public class FormatTestDto { */ @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -319,7 +319,7 @@ public class FormatTestDto { this.password = password; } - public FormatTestDto bigDecimal(BigDecimal bigDecimal) { + public FormatTestDto bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -330,11 +330,11 @@ public class FormatTestDto { */ @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/HasOnlyReadOnlyDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/HasOnlyReadOnlyDto.java index dd6ebc4b0cd..d11bd784152 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/HasOnlyReadOnlyDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/HasOnlyReadOnlyDto.java @@ -26,7 +26,7 @@ public class HasOnlyReadOnlyDto { private @Nullable String foo; - public HasOnlyReadOnlyDto bar(String bar) { + public HasOnlyReadOnlyDto bar(@Nullable String bar) { this.bar = bar; return this; } @@ -37,15 +37,15 @@ public class HasOnlyReadOnlyDto { */ @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnlyDto foo(String foo) { + public HasOnlyReadOnlyDto foo(@Nullable String foo) { this.foo = foo; return this; } @@ -56,11 +56,11 @@ public class HasOnlyReadOnlyDto { */ @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ListDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ListDto.java index c5808d87190..f20458d8806 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ListDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ListDto.java @@ -24,7 +24,7 @@ public class ListDto { private @Nullable String _123list; - public ListDto _123list(String _123list) { + public ListDto _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -35,11 +35,11 @@ public class ListDto { */ @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java index 9ac793df577..8c0b48b33e6 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java @@ -36,7 +36,7 @@ public class MixedPropertiesAndAdditionalPropertiesClassDto { private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClassDto uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClassDto uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -47,15 +47,15 @@ public class MixedPropertiesAndAdditionalPropertiesClassDto { */ @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClassDto dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClassDto dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -66,11 +66,11 @@ public class MixedPropertiesAndAdditionalPropertiesClassDto { */ @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/Model200ResponseDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/Model200ResponseDto.java index c90ea042da8..9ab3a2c445f 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/Model200ResponseDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/Model200ResponseDto.java @@ -26,7 +26,7 @@ public class Model200ResponseDto { private @Nullable String propertyClass; - public Model200ResponseDto name(Integer name) { + public Model200ResponseDto name(@Nullable Integer name) { this.name = name; return this; } @@ -37,15 +37,15 @@ public class Model200ResponseDto { */ @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200ResponseDto propertyClass(String propertyClass) { + public Model200ResponseDto propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -56,11 +56,11 @@ public class Model200ResponseDto { */ @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/NameDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/NameDto.java index 7f21b0d1c27..a12ecc2a118 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/NameDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/NameDto.java @@ -53,7 +53,7 @@ public class NameDto { this.name = name; } - public NameDto snakeCase(Integer snakeCase) { + public NameDto snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -64,15 +64,15 @@ public class NameDto { */ @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public NameDto property(String property) { + public NameDto property(@Nullable String property) { this.property = property; return this; } @@ -83,15 +83,15 @@ public class NameDto { */ @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public NameDto _123number(Integer _123number) { + public NameDto _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -102,11 +102,11 @@ public class NameDto { */ @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/NumberOnlyDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/NumberOnlyDto.java index 6aed23dc5cd..5fc6d0aaf0a 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/NumberOnlyDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/NumberOnlyDto.java @@ -25,7 +25,7 @@ public class NumberOnlyDto { private @Nullable BigDecimal justNumber; - public NumberOnlyDto justNumber(BigDecimal justNumber) { + public NumberOnlyDto justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -36,11 +36,11 @@ public class NumberOnlyDto { */ @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/OrderDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/OrderDto.java index 3213a4834f8..810e46516c3 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/OrderDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/OrderDto.java @@ -75,7 +75,7 @@ public class OrderDto { private Boolean complete = false; - public OrderDto id(Long id) { + public OrderDto id(@Nullable Long id) { this.id = id; return this; } @@ -86,15 +86,15 @@ public class OrderDto { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public OrderDto petId(Long petId) { + public OrderDto petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -105,15 +105,15 @@ public class OrderDto { */ @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public OrderDto quantity(Integer quantity) { + public OrderDto quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -124,15 +124,15 @@ public class OrderDto { */ @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public OrderDto shipDate(OffsetDateTime shipDate) { + public OrderDto shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -143,15 +143,15 @@ public class OrderDto { */ @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public OrderDto status(StatusEnum status) { + public OrderDto status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -162,11 +162,11 @@ public class OrderDto { */ @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/OuterCompositeDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/OuterCompositeDto.java index d6d971b70de..02657a50603 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/OuterCompositeDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/OuterCompositeDto.java @@ -29,7 +29,7 @@ public class OuterCompositeDto { private @Nullable Boolean myBoolean; - public OuterCompositeDto myNumber(BigDecimal myNumber) { + public OuterCompositeDto myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -40,15 +40,15 @@ public class OuterCompositeDto { */ @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterCompositeDto myString(String myString) { + public OuterCompositeDto myString(@Nullable String myString) { this.myString = myString; return this; } @@ -59,15 +59,15 @@ public class OuterCompositeDto { */ @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterCompositeDto myBoolean(Boolean myBoolean) { + public OuterCompositeDto myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -78,11 +78,11 @@ public class OuterCompositeDto { */ @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ParentWithNullableDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ParentWithNullableDto.java index 973da496e83..90458d0a327 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ParentWithNullableDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ParentWithNullableDto.java @@ -74,7 +74,7 @@ public class ParentWithNullableDto { private JsonNullable nullableProperty = JsonNullable.undefined(); - public ParentWithNullableDto type(TypeEnum type) { + public ParentWithNullableDto type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -85,11 +85,11 @@ public class ParentWithNullableDto { */ @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/PetDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/PetDto.java index baf1a692105..7695b075b5a 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/PetDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/PetDto.java @@ -87,7 +87,7 @@ public class PetDto { super(); } - public PetDto id(Long id) { + public PetDto id(@Nullable Long id) { this.id = id; return this; } @@ -98,15 +98,15 @@ public class PetDto { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public PetDto category(CategoryDto category) { + public PetDto category(@Nullable CategoryDto category) { this.category = category; return this; } @@ -117,11 +117,11 @@ public class PetDto { */ @JsonProperty("category") - public CategoryDto getCategory() { + public @Nullable CategoryDto getCategory() { return category; } - public void setCategory(CategoryDto category) { + public void setCategory(@Nullable CategoryDto category) { this.category = category; } @@ -199,7 +199,7 @@ public class PetDto { this.tags = tags; } - public PetDto status(StatusEnum status) { + public PetDto status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -212,7 +212,7 @@ public class PetDto { @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -220,7 +220,7 @@ public class PetDto { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ReadOnlyFirstDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ReadOnlyFirstDto.java index 4c93c993116..d1d2f3ce267 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ReadOnlyFirstDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ReadOnlyFirstDto.java @@ -26,7 +26,7 @@ public class ReadOnlyFirstDto { private @Nullable String baz; - public ReadOnlyFirstDto bar(String bar) { + public ReadOnlyFirstDto bar(@Nullable String bar) { this.bar = bar; return this; } @@ -37,15 +37,15 @@ public class ReadOnlyFirstDto { */ @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirstDto baz(String baz) { + public ReadOnlyFirstDto baz(@Nullable String baz) { this.baz = baz; return this; } @@ -56,11 +56,11 @@ public class ReadOnlyFirstDto { */ @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNamesDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNamesDto.java index ebf3c803735..98262e290b6 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNamesDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNamesDto.java @@ -30,7 +30,7 @@ public class ResponseObjectWithDifferentFieldNamesDto { private @Nullable String propertyNameWithSpaces; - public ResponseObjectWithDifferentFieldNamesDto normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNamesDto normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -41,15 +41,15 @@ public class ResponseObjectWithDifferentFieldNamesDto { */ @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNamesDto UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNamesDto UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -60,15 +60,15 @@ public class ResponseObjectWithDifferentFieldNamesDto { */ @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNamesDto lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNamesDto lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -79,15 +79,15 @@ public class ResponseObjectWithDifferentFieldNamesDto { */ @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNamesDto propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNamesDto propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -98,11 +98,11 @@ public class ResponseObjectWithDifferentFieldNamesDto { */ @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ReturnDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ReturnDto.java index 67372847e3f..d38fc76980b 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ReturnDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ReturnDto.java @@ -24,7 +24,7 @@ public class ReturnDto { private @Nullable Integer _return; - public ReturnDto _return(Integer _return) { + public ReturnDto _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -35,11 +35,11 @@ public class ReturnDto { */ @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/SpecialModelNameDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/SpecialModelNameDto.java index 83476b9ca56..456f94209aa 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/SpecialModelNameDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/SpecialModelNameDto.java @@ -24,7 +24,7 @@ public class SpecialModelNameDto { private @Nullable Long $specialPropertyName; - public SpecialModelNameDto $specialPropertyName(Long $specialPropertyName) { + public SpecialModelNameDto $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -35,11 +35,11 @@ public class SpecialModelNameDto { */ @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/TagDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/TagDto.java index 800685db516..4650aa2c9d9 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/TagDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/TagDto.java @@ -26,7 +26,7 @@ public class TagDto { private @Nullable String name; - public TagDto id(Long id) { + public TagDto id(@Nullable Long id) { this.id = id; return this; } @@ -37,15 +37,15 @@ public class TagDto { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public TagDto name(String name) { + public TagDto name(@Nullable String name) { this.name = name; return this; } @@ -56,11 +56,11 @@ public class TagDto { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/UserDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/UserDto.java index d6f764de1af..74c97fd6d19 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/UserDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/UserDto.java @@ -38,7 +38,7 @@ public class UserDto { private @Nullable Integer userStatus; - public UserDto id(Long id) { + public UserDto id(@Nullable Long id) { this.id = id; return this; } @@ -49,15 +49,15 @@ public class UserDto { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public UserDto username(String username) { + public UserDto username(@Nullable String username) { this.username = username; return this; } @@ -68,15 +68,15 @@ public class UserDto { */ @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public UserDto firstName(String firstName) { + public UserDto firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -87,15 +87,15 @@ public class UserDto { */ @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public UserDto lastName(String lastName) { + public UserDto lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -106,15 +106,15 @@ public class UserDto { */ @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public UserDto email(String email) { + public UserDto email(@Nullable String email) { this.email = email; return this; } @@ -125,15 +125,15 @@ public class UserDto { */ @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public UserDto password(String password) { + public UserDto password(@Nullable String password) { this.password = password; return this; } @@ -144,15 +144,15 @@ public class UserDto { */ @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public UserDto phone(String phone) { + public UserDto phone(@Nullable String phone) { this.phone = phone; return this; } @@ -163,15 +163,15 @@ public class UserDto { */ @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public UserDto userStatus(Integer userStatus) { + public UserDto userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -182,11 +182,11 @@ public class UserDto { */ @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/XmlItemDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/XmlItemDto.java index d67617003c0..15762073cb5 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/XmlItemDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/XmlItemDto.java @@ -93,7 +93,7 @@ public class XmlItemDto { private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItemDto attributeString(String attributeString) { + public XmlItemDto attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -104,15 +104,15 @@ public class XmlItemDto { */ @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItemDto attributeNumber(BigDecimal attributeNumber) { + public XmlItemDto attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -123,15 +123,15 @@ public class XmlItemDto { */ @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItemDto attributeInteger(Integer attributeInteger) { + public XmlItemDto attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -142,15 +142,15 @@ public class XmlItemDto { */ @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItemDto attributeBoolean(Boolean attributeBoolean) { + public XmlItemDto attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -161,11 +161,11 @@ public class XmlItemDto { */ @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -196,7 +196,7 @@ public class XmlItemDto { this.wrappedArray = wrappedArray; } - public XmlItemDto nameString(String nameString) { + public XmlItemDto nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -207,15 +207,15 @@ public class XmlItemDto { */ @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItemDto nameNumber(BigDecimal nameNumber) { + public XmlItemDto nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -226,15 +226,15 @@ public class XmlItemDto { */ @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItemDto nameInteger(Integer nameInteger) { + public XmlItemDto nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -245,15 +245,15 @@ public class XmlItemDto { */ @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItemDto nameBoolean(Boolean nameBoolean) { + public XmlItemDto nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -264,11 +264,11 @@ public class XmlItemDto { */ @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -326,7 +326,7 @@ public class XmlItemDto { this.nameWrappedArray = nameWrappedArray; } - public XmlItemDto prefixString(String prefixString) { + public XmlItemDto prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -337,15 +337,15 @@ public class XmlItemDto { */ @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItemDto prefixNumber(BigDecimal prefixNumber) { + public XmlItemDto prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -356,15 +356,15 @@ public class XmlItemDto { */ @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItemDto prefixInteger(Integer prefixInteger) { + public XmlItemDto prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -375,15 +375,15 @@ public class XmlItemDto { */ @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItemDto prefixBoolean(Boolean prefixBoolean) { + public XmlItemDto prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -394,11 +394,11 @@ public class XmlItemDto { */ @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -456,7 +456,7 @@ public class XmlItemDto { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItemDto namespaceString(String namespaceString) { + public XmlItemDto namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -467,15 +467,15 @@ public class XmlItemDto { */ @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItemDto namespaceNumber(BigDecimal namespaceNumber) { + public XmlItemDto namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -486,15 +486,15 @@ public class XmlItemDto { */ @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItemDto namespaceInteger(Integer namespaceInteger) { + public XmlItemDto namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -505,15 +505,15 @@ public class XmlItemDto { */ @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItemDto namespaceBoolean(Boolean namespaceBoolean) { + public XmlItemDto namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -524,11 +524,11 @@ public class XmlItemDto { */ @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -586,7 +586,7 @@ public class XmlItemDto { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItemDto prefixNsString(String prefixNsString) { + public XmlItemDto prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -597,15 +597,15 @@ public class XmlItemDto { */ @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItemDto prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItemDto prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -616,15 +616,15 @@ public class XmlItemDto { */ @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItemDto prefixNsInteger(Integer prefixNsInteger) { + public XmlItemDto prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -635,15 +635,15 @@ public class XmlItemDto { */ @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItemDto prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItemDto prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -654,11 +654,11 @@ public class XmlItemDto { */ @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/AnotherFakeApi.java index 5148d101ff0..fb78ad1920f 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.Client; import org.springframework.http.HttpStatus; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java index 476adda20f8..55d6e89358c 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java @@ -17,6 +17,7 @@ import org.openapitools.model.OuterComposite; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import org.springframework.http.HttpStatus; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -256,12 +257,12 @@ public interface FakeApi { contentType = "application/x-www-form-urlencoded" ) Mono testEnumParameters( - @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @RequestPart(value = "enum_form_string", required = false) String enumFormString ); @@ -289,9 +290,9 @@ public interface FakeApi { @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @RequestParam(value = "string_group", required = false) Integer stringGroup, - @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @RequestParam(value = "int64_group", required = false) Long int64Group + @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ); diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java index c0e04768a5f..a4e6780ef50 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.Client; import org.springframework.http.HttpStatus; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/PetApi.java index df65df4f9cd..1f95ea2c3e7 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/PetApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.Pet; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import java.util.Set; import org.springframework.http.HttpStatus; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -64,7 +65,7 @@ public interface PetApi { ) Mono deletePet( @PathVariable("petId") Long petId, - @RequestHeader(value = "api_key", required = false) String apiKey + @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ); diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/StoreApi.java index 84ae7f4b609..3429a57013f 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/StoreApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.util.Map; import org.openapitools.model.Order; import org.springframework.http.HttpStatus; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/UserApi.java index 0bae668ba51..fe05b4009a0 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/UserApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.time.OffsetDateTime; import org.openapitools.model.User; import org.springframework.http.HttpStatus; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index f90db6bbeb2..c2df28430d4 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -26,7 +26,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -37,11 +37,11 @@ public class AdditionalPropertiesAnyType { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 833ebb81b35..1553218a363 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -27,7 +27,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -38,11 +38,11 @@ public class AdditionalPropertiesArray { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 9dfbd7c4906..4be3deaeadb 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -26,7 +26,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -37,11 +37,11 @@ public class AdditionalPropertiesBoolean { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 22218d63ba1..ca567881bd1 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -273,7 +273,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -284,11 +284,11 @@ public class AdditionalPropertiesClass { */ @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } @@ -311,7 +311,7 @@ public class AdditionalPropertiesClass { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -322,11 +322,11 @@ public class AdditionalPropertiesClass { */ @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 58b63a190dc..8b8eb032c40 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -26,7 +26,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -37,11 +37,11 @@ public class AdditionalPropertiesInteger { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 11ae393dc69..bb69fbafcc5 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -27,7 +27,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -38,11 +38,11 @@ public class AdditionalPropertiesNumber { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 0929cb26fa7..e8ce0a2c6a3 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -27,7 +27,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -38,11 +38,11 @@ public class AdditionalPropertiesObject { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index ffc330e6c3c..aed5fa70974 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -26,7 +26,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -37,11 +37,11 @@ public class AdditionalPropertiesString { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/BigCat.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/BigCat.java index df1b5d1b6d2..651004556e5 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/BigCat.java @@ -78,7 +78,7 @@ public class BigCat extends Cat { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -89,11 +89,11 @@ public class BigCat extends Cat { */ @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Capitalization.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Capitalization.java index c08586fdece..b3f72b35236 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Capitalization.java @@ -32,7 +32,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -43,15 +43,15 @@ public class Capitalization { */ @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -62,15 +62,15 @@ public class Capitalization { */ @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -81,15 +81,15 @@ public class Capitalization { */ @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -100,15 +100,15 @@ public class Capitalization { */ @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -119,15 +119,15 @@ public class Capitalization { */ @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -138,11 +138,11 @@ public class Capitalization { */ @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Cat.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Cat.java index 878f6202b0f..5fdeea7413c 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Cat.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Cat.java @@ -46,7 +46,7 @@ public class Cat extends Animal { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -57,11 +57,11 @@ public class Cat extends Animal { */ @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Category.java index ae6aaf461a2..08e7253dfbb 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Category.java @@ -35,7 +35,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -46,11 +46,11 @@ public class Category { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullable.java index 80d3dbef5da..942258afed0 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -30,7 +30,7 @@ public class ChildWithNullable extends ParentWithNullable { private @Nullable String otherProperty; - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -41,11 +41,11 @@ public class ChildWithNullable extends ParentWithNullable { */ @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ClassModel.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ClassModel.java index 75b96c2095a..d73d14f5100 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ClassModel.java @@ -22,7 +22,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -33,11 +33,11 @@ public class ClassModel { */ @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Client.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Client.java index fd2946d72f0..20160c69664 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Client.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Client.java @@ -22,7 +22,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -33,11 +33,11 @@ public class Client { */ @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Dog.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Dog.java index d9308b46923..b2cda62f307 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Dog.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Dog.java @@ -38,7 +38,7 @@ public class Dog extends Animal { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -49,11 +49,11 @@ public class Dog extends Animal { */ @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumArrays.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumArrays.java index a5f33817cb4..38713b94ad7 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumArrays.java @@ -99,7 +99,7 @@ public class EnumArrays { private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -110,11 +110,11 @@ public class EnumArrays { */ @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumTest.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumTest.java index 03675b9ba81..574a9b8bec9 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumTest.java @@ -189,7 +189,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -200,11 +200,11 @@ public class EnumTest { */ @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -227,7 +227,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -238,15 +238,15 @@ public class EnumTest { */ @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -257,15 +257,15 @@ public class EnumTest { */ @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -276,11 +276,11 @@ public class EnumTest { */ @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/File.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/File.java index 052c7674e1d..42da1eeee09 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/File.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/File.java @@ -22,7 +22,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -33,11 +33,11 @@ public class File { */ @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 127b5776bb7..1ed8d88df91 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -29,7 +29,7 @@ public class FileSchemaTestClass { private List files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -40,11 +40,11 @@ public class FileSchemaTestClass { */ @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/FormatTest.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/FormatTest.java index 435d2cfe0d5..bed0d178bb8 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/FormatTest.java @@ -72,7 +72,7 @@ public class FormatTest { this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -85,15 +85,15 @@ public class FormatTest { */ @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -106,15 +106,15 @@ public class FormatTest { */ @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -125,11 +125,11 @@ public class FormatTest { */ @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -154,7 +154,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -167,15 +167,15 @@ public class FormatTest { */ @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -188,15 +188,15 @@ public class FormatTest { */ @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -207,11 +207,11 @@ public class FormatTest { */ @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -234,7 +234,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -245,11 +245,11 @@ public class FormatTest { */ @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -272,7 +272,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -283,15 +283,15 @@ public class FormatTest { */ @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -302,11 +302,11 @@ public class FormatTest { */ @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -329,7 +329,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -340,11 +340,11 @@ public class FormatTest { */ @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 8c7e0161755..a37cfe63d55 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -26,7 +26,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -37,15 +37,15 @@ public class HasOnlyReadOnly { */ @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -56,11 +56,11 @@ public class HasOnlyReadOnly { */ @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 7791844d8e8..2f9abb13f2d 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -34,7 +34,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -45,15 +45,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { */ @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -64,11 +64,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { */ @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Model200Response.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Model200Response.java index e3c8d29d494..e9fc495083c 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Model200Response.java @@ -26,7 +26,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -37,15 +37,15 @@ public class Model200Response { */ @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -56,11 +56,11 @@ public class Model200Response { */ @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelApiResponse.java index d1d3b132bb8..63b3cea0e85 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -28,7 +28,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -39,15 +39,15 @@ public class ModelApiResponse { */ @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -58,15 +58,15 @@ public class ModelApiResponse { */ @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -77,11 +77,11 @@ public class ModelApiResponse { */ @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelList.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelList.java index 91b7e7d66b9..4198ff2174a 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelList.java @@ -24,7 +24,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -35,11 +35,11 @@ public class ModelList { */ @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelReturn.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelReturn.java index c4477acda6a..543ed4a86d1 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelReturn.java @@ -24,7 +24,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -35,11 +35,11 @@ public class ModelReturn { */ @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Name.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Name.java index 5353eee13dd..188e5d98a03 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Name.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Name.java @@ -58,7 +58,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -69,15 +69,15 @@ public class Name { */ @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -88,15 +88,15 @@ public class Name { */ @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -107,11 +107,11 @@ public class Name { */ @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/NumberOnly.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/NumberOnly.java index 2386db37f8c..2686fb51710 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/NumberOnly.java @@ -23,7 +23,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -34,11 +34,11 @@ public class NumberOnly { */ @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Order.java index 9552d57f248..7292644ec28 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Order.java @@ -73,7 +73,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -84,15 +84,15 @@ public class Order { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -103,15 +103,15 @@ public class Order { */ @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -122,15 +122,15 @@ public class Order { */ @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -141,15 +141,15 @@ public class Order { */ @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -160,11 +160,11 @@ public class Order { */ @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/OuterComposite.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/OuterComposite.java index 6e39e5dd2c0..2abe55a063c 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/OuterComposite.java @@ -27,7 +27,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -38,15 +38,15 @@ public class OuterComposite { */ @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -57,15 +57,15 @@ public class OuterComposite { */ @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -76,11 +76,11 @@ public class OuterComposite { */ @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ParentWithNullable.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ParentWithNullable.java index eaf81d797f6..1f304093ab6 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ParentWithNullable.java @@ -73,7 +73,7 @@ public class ParentWithNullable { private JsonNullable nullableProperty = JsonNullable.undefined(); - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -84,11 +84,11 @@ public class ParentWithNullable { */ @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Pet.java index a005de49390..38a704c20ca 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Pet.java @@ -93,7 +93,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -104,15 +104,15 @@ public class Pet { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -123,11 +123,11 @@ public class Pet { */ @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -205,7 +205,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -218,7 +218,7 @@ public class Pet { @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -226,7 +226,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ReadOnlyFirst.java index e62750ea970..20a6e1ecfe4 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -24,7 +24,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -35,15 +35,15 @@ public class ReadOnlyFirst { */ @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -54,11 +54,11 @@ public class ReadOnlyFirst { */ @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java index e7132db11e3..a6de58cfacd 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java @@ -28,7 +28,7 @@ public class ResponseObjectWithDifferentFieldNames { private @Nullable String propertyNameWithSpaces; - public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNames normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -39,15 +39,15 @@ public class ResponseObjectWithDifferentFieldNames { */ @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -58,15 +58,15 @@ public class ResponseObjectWithDifferentFieldNames { */ @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -77,15 +77,15 @@ public class ResponseObjectWithDifferentFieldNames { */ @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -96,11 +96,11 @@ public class ResponseObjectWithDifferentFieldNames { */ @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/SpecialModelName.java index 7fe53f3a23b..6debc34bcbd 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/SpecialModelName.java @@ -24,7 +24,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -35,11 +35,11 @@ public class SpecialModelName { */ @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Tag.java index dc6d143b032..60011daf4f0 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/Tag.java @@ -24,7 +24,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -35,15 +35,15 @@ public class Tag { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -54,11 +54,11 @@ public class Tag { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/User.java index d32e0783be0..25417c094f4 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/User.java @@ -36,7 +36,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -47,15 +47,15 @@ public class User { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -66,15 +66,15 @@ public class User { */ @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -85,15 +85,15 @@ public class User { */ @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -104,15 +104,15 @@ public class User { */ @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -123,15 +123,15 @@ public class User { */ @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -142,15 +142,15 @@ public class User { */ @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -161,15 +161,15 @@ public class User { */ @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -180,11 +180,11 @@ public class User { */ @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/XmlItem.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/XmlItem.java index ff067c350f4..6302cedc428 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/XmlItem.java @@ -91,7 +91,7 @@ public class XmlItem { private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -102,15 +102,15 @@ public class XmlItem { */ @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -121,15 +121,15 @@ public class XmlItem { */ @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -140,15 +140,15 @@ public class XmlItem { */ @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -159,11 +159,11 @@ public class XmlItem { */ @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -194,7 +194,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -205,15 +205,15 @@ public class XmlItem { */ @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -224,15 +224,15 @@ public class XmlItem { */ @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -243,15 +243,15 @@ public class XmlItem { */ @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -262,11 +262,11 @@ public class XmlItem { */ @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -324,7 +324,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -335,15 +335,15 @@ public class XmlItem { */ @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -354,15 +354,15 @@ public class XmlItem { */ @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -373,15 +373,15 @@ public class XmlItem { */ @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -392,11 +392,11 @@ public class XmlItem { */ @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -454,7 +454,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -465,15 +465,15 @@ public class XmlItem { */ @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -484,15 +484,15 @@ public class XmlItem { */ @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -503,15 +503,15 @@ public class XmlItem { */ @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -522,11 +522,11 @@ public class XmlItem { */ @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -584,7 +584,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -595,15 +595,15 @@ public class XmlItem { */ @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -614,15 +614,15 @@ public class XmlItem { */ @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -633,15 +633,15 @@ public class XmlItem { */ @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -652,11 +652,11 @@ public class XmlItem { */ @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java index 962e5deaa1e..e80c40c1fe3 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.Client; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/FakeApi.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/FakeApi.java index be0d8b4d674..c929f8174da 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/FakeApi.java @@ -17,6 +17,7 @@ import org.openapitools.model.OuterComposite; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -246,12 +247,12 @@ public interface FakeApi { contentType = "application/x-www-form-urlencoded" ) Mono> testEnumParameters( - @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @RequestPart(value = "enum_form_string", required = false) String enumFormString ); @@ -278,9 +279,9 @@ public interface FakeApi { @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @RequestParam(value = "string_group", required = false) Integer stringGroup, - @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @RequestParam(value = "int64_group", required = false) Long int64Group + @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ); diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java index 4cc7aa37b38..784f997a9c4 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.Client; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/PetApi.java index 5405ef74b86..186f85f9c11 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/PetApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.Pet; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import java.util.Set; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -62,7 +63,7 @@ public interface PetApi { ) Mono> deletePet( @PathVariable("petId") Long petId, - @RequestHeader(value = "api_key", required = false) String apiKey + @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ); diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/StoreApi.java index 74cddfc9ee1..94a61065f09 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/StoreApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.util.Map; import org.openapitools.model.Order; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/UserApi.java index 6a065d4418b..08719b7634b 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/UserApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.time.OffsetDateTime; import org.openapitools.model.User; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index f90db6bbeb2..c2df28430d4 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -26,7 +26,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -37,11 +37,11 @@ public class AdditionalPropertiesAnyType { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 833ebb81b35..1553218a363 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -27,7 +27,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -38,11 +38,11 @@ public class AdditionalPropertiesArray { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 9dfbd7c4906..4be3deaeadb 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -26,7 +26,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -37,11 +37,11 @@ public class AdditionalPropertiesBoolean { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 22218d63ba1..ca567881bd1 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -273,7 +273,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -284,11 +284,11 @@ public class AdditionalPropertiesClass { */ @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } @@ -311,7 +311,7 @@ public class AdditionalPropertiesClass { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -322,11 +322,11 @@ public class AdditionalPropertiesClass { */ @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 58b63a190dc..8b8eb032c40 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -26,7 +26,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -37,11 +37,11 @@ public class AdditionalPropertiesInteger { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 11ae393dc69..bb69fbafcc5 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -27,7 +27,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -38,11 +38,11 @@ public class AdditionalPropertiesNumber { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 0929cb26fa7..e8ce0a2c6a3 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -27,7 +27,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -38,11 +38,11 @@ public class AdditionalPropertiesObject { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index ffc330e6c3c..aed5fa70974 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -26,7 +26,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -37,11 +37,11 @@ public class AdditionalPropertiesString { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/BigCat.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/BigCat.java index df1b5d1b6d2..651004556e5 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/BigCat.java @@ -78,7 +78,7 @@ public class BigCat extends Cat { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -89,11 +89,11 @@ public class BigCat extends Cat { */ @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Capitalization.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Capitalization.java index c08586fdece..b3f72b35236 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Capitalization.java @@ -32,7 +32,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -43,15 +43,15 @@ public class Capitalization { */ @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -62,15 +62,15 @@ public class Capitalization { */ @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -81,15 +81,15 @@ public class Capitalization { */ @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -100,15 +100,15 @@ public class Capitalization { */ @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -119,15 +119,15 @@ public class Capitalization { */ @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -138,11 +138,11 @@ public class Capitalization { */ @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Cat.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Cat.java index 878f6202b0f..5fdeea7413c 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Cat.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Cat.java @@ -46,7 +46,7 @@ public class Cat extends Animal { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -57,11 +57,11 @@ public class Cat extends Animal { */ @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Category.java index ae6aaf461a2..08e7253dfbb 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Category.java @@ -35,7 +35,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -46,11 +46,11 @@ public class Category { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java index 80d3dbef5da..942258afed0 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -30,7 +30,7 @@ public class ChildWithNullable extends ParentWithNullable { private @Nullable String otherProperty; - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -41,11 +41,11 @@ public class ChildWithNullable extends ParentWithNullable { */ @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ClassModel.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ClassModel.java index 75b96c2095a..d73d14f5100 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ClassModel.java @@ -22,7 +22,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -33,11 +33,11 @@ public class ClassModel { */ @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Client.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Client.java index fd2946d72f0..20160c69664 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Client.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Client.java @@ -22,7 +22,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -33,11 +33,11 @@ public class Client { */ @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Dog.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Dog.java index d9308b46923..b2cda62f307 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Dog.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Dog.java @@ -38,7 +38,7 @@ public class Dog extends Animal { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -49,11 +49,11 @@ public class Dog extends Animal { */ @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumArrays.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumArrays.java index a5f33817cb4..38713b94ad7 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumArrays.java @@ -99,7 +99,7 @@ public class EnumArrays { private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -110,11 +110,11 @@ public class EnumArrays { */ @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumTest.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumTest.java index 03675b9ba81..574a9b8bec9 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumTest.java @@ -189,7 +189,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -200,11 +200,11 @@ public class EnumTest { */ @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -227,7 +227,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -238,15 +238,15 @@ public class EnumTest { */ @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -257,15 +257,15 @@ public class EnumTest { */ @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -276,11 +276,11 @@ public class EnumTest { */ @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/File.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/File.java index 052c7674e1d..42da1eeee09 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/File.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/File.java @@ -22,7 +22,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -33,11 +33,11 @@ public class File { */ @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 127b5776bb7..1ed8d88df91 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -29,7 +29,7 @@ public class FileSchemaTestClass { private List files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -40,11 +40,11 @@ public class FileSchemaTestClass { */ @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/FormatTest.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/FormatTest.java index 435d2cfe0d5..bed0d178bb8 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/FormatTest.java @@ -72,7 +72,7 @@ public class FormatTest { this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -85,15 +85,15 @@ public class FormatTest { */ @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -106,15 +106,15 @@ public class FormatTest { */ @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -125,11 +125,11 @@ public class FormatTest { */ @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -154,7 +154,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -167,15 +167,15 @@ public class FormatTest { */ @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -188,15 +188,15 @@ public class FormatTest { */ @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -207,11 +207,11 @@ public class FormatTest { */ @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -234,7 +234,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -245,11 +245,11 @@ public class FormatTest { */ @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -272,7 +272,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -283,15 +283,15 @@ public class FormatTest { */ @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -302,11 +302,11 @@ public class FormatTest { */ @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -329,7 +329,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -340,11 +340,11 @@ public class FormatTest { */ @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 8c7e0161755..a37cfe63d55 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -26,7 +26,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -37,15 +37,15 @@ public class HasOnlyReadOnly { */ @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -56,11 +56,11 @@ public class HasOnlyReadOnly { */ @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 7791844d8e8..2f9abb13f2d 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -34,7 +34,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -45,15 +45,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { */ @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -64,11 +64,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { */ @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Model200Response.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Model200Response.java index e3c8d29d494..e9fc495083c 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Model200Response.java @@ -26,7 +26,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -37,15 +37,15 @@ public class Model200Response { */ @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -56,11 +56,11 @@ public class Model200Response { */ @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java index d1d3b132bb8..63b3cea0e85 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -28,7 +28,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -39,15 +39,15 @@ public class ModelApiResponse { */ @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -58,15 +58,15 @@ public class ModelApiResponse { */ @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -77,11 +77,11 @@ public class ModelApiResponse { */ @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelList.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelList.java index 91b7e7d66b9..4198ff2174a 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelList.java @@ -24,7 +24,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -35,11 +35,11 @@ public class ModelList { */ @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelReturn.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelReturn.java index c4477acda6a..543ed4a86d1 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelReturn.java @@ -24,7 +24,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -35,11 +35,11 @@ public class ModelReturn { */ @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Name.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Name.java index 5353eee13dd..188e5d98a03 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Name.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Name.java @@ -58,7 +58,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -69,15 +69,15 @@ public class Name { */ @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -88,15 +88,15 @@ public class Name { */ @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -107,11 +107,11 @@ public class Name { */ @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/NumberOnly.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/NumberOnly.java index 2386db37f8c..2686fb51710 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/NumberOnly.java @@ -23,7 +23,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -34,11 +34,11 @@ public class NumberOnly { */ @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Order.java index 9552d57f248..7292644ec28 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Order.java @@ -73,7 +73,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -84,15 +84,15 @@ public class Order { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -103,15 +103,15 @@ public class Order { */ @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -122,15 +122,15 @@ public class Order { */ @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -141,15 +141,15 @@ public class Order { */ @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -160,11 +160,11 @@ public class Order { */ @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/OuterComposite.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/OuterComposite.java index 6e39e5dd2c0..2abe55a063c 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/OuterComposite.java @@ -27,7 +27,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -38,15 +38,15 @@ public class OuterComposite { */ @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -57,15 +57,15 @@ public class OuterComposite { */ @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -76,11 +76,11 @@ public class OuterComposite { */ @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ParentWithNullable.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ParentWithNullable.java index eaf81d797f6..1f304093ab6 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ParentWithNullable.java @@ -73,7 +73,7 @@ public class ParentWithNullable { private JsonNullable nullableProperty = JsonNullable.undefined(); - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -84,11 +84,11 @@ public class ParentWithNullable { */ @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Pet.java index a005de49390..38a704c20ca 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Pet.java @@ -93,7 +93,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -104,15 +104,15 @@ public class Pet { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -123,11 +123,11 @@ public class Pet { */ @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -205,7 +205,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -218,7 +218,7 @@ public class Pet { @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -226,7 +226,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java index e62750ea970..20a6e1ecfe4 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -24,7 +24,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -35,15 +35,15 @@ public class ReadOnlyFirst { */ @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -54,11 +54,11 @@ public class ReadOnlyFirst { */ @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java index e7132db11e3..a6de58cfacd 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java @@ -28,7 +28,7 @@ public class ResponseObjectWithDifferentFieldNames { private @Nullable String propertyNameWithSpaces; - public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNames normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -39,15 +39,15 @@ public class ResponseObjectWithDifferentFieldNames { */ @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -58,15 +58,15 @@ public class ResponseObjectWithDifferentFieldNames { */ @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -77,15 +77,15 @@ public class ResponseObjectWithDifferentFieldNames { */ @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -96,11 +96,11 @@ public class ResponseObjectWithDifferentFieldNames { */ @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/SpecialModelName.java index 7fe53f3a23b..6debc34bcbd 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/SpecialModelName.java @@ -24,7 +24,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -35,11 +35,11 @@ public class SpecialModelName { */ @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Tag.java index dc6d143b032..60011daf4f0 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Tag.java @@ -24,7 +24,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -35,15 +35,15 @@ public class Tag { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -54,11 +54,11 @@ public class Tag { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/User.java index d32e0783be0..25417c094f4 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/User.java @@ -36,7 +36,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -47,15 +47,15 @@ public class User { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -66,15 +66,15 @@ public class User { */ @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -85,15 +85,15 @@ public class User { */ @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -104,15 +104,15 @@ public class User { */ @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -123,15 +123,15 @@ public class User { */ @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -142,15 +142,15 @@ public class User { */ @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -161,15 +161,15 @@ public class User { */ @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -180,11 +180,11 @@ public class User { */ @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/XmlItem.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/XmlItem.java index ff067c350f4..6302cedc428 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/XmlItem.java @@ -91,7 +91,7 @@ public class XmlItem { private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -102,15 +102,15 @@ public class XmlItem { */ @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -121,15 +121,15 @@ public class XmlItem { */ @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -140,15 +140,15 @@ public class XmlItem { */ @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -159,11 +159,11 @@ public class XmlItem { */ @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -194,7 +194,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -205,15 +205,15 @@ public class XmlItem { */ @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -224,15 +224,15 @@ public class XmlItem { */ @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -243,15 +243,15 @@ public class XmlItem { */ @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -262,11 +262,11 @@ public class XmlItem { */ @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -324,7 +324,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -335,15 +335,15 @@ public class XmlItem { */ @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -354,15 +354,15 @@ public class XmlItem { */ @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -373,15 +373,15 @@ public class XmlItem { */ @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -392,11 +392,11 @@ public class XmlItem { */ @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -454,7 +454,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -465,15 +465,15 @@ public class XmlItem { */ @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -484,15 +484,15 @@ public class XmlItem { */ @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -503,15 +503,15 @@ public class XmlItem { */ @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -522,11 +522,11 @@ public class XmlItem { */ @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -584,7 +584,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -595,15 +595,15 @@ public class XmlItem { */ @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -614,15 +614,15 @@ public class XmlItem { */ @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -633,15 +633,15 @@ public class XmlItem { */ @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -652,11 +652,11 @@ public class XmlItem { */ @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/AnotherFakeApi.java index beb112c8dcb..912a6e5607a 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.ClientDto; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/FakeApi.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/FakeApi.java index a5bfc4b3d84..69a3a73a632 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/FakeApi.java @@ -17,6 +17,7 @@ import org.openapitools.model.OuterCompositeDto; import org.openapitools.model.UserDto; import org.openapitools.model.XmlItemDto; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -62,7 +63,7 @@ public interface FakeApi { contentType = "application/json" ) ResponseEntity fakeOuterBooleanSerialize( - @RequestBody(required = false) Boolean body + @RequestBody(required = false) @Nullable Boolean body ); @@ -80,7 +81,7 @@ public interface FakeApi { contentType = "application/json" ) ResponseEntity fakeOuterCompositeSerialize( - @RequestBody(required = false) OuterCompositeDto outerCompositeDto + @RequestBody(required = false) @Nullable OuterCompositeDto outerCompositeDto ); @@ -98,7 +99,7 @@ public interface FakeApi { contentType = "application/json" ) ResponseEntity fakeOuterNumberSerialize( - @RequestBody(required = false) BigDecimal body + @RequestBody(required = false) @Nullable BigDecimal body ); @@ -116,7 +117,7 @@ public interface FakeApi { contentType = "application/json" ) ResponseEntity fakeOuterStringSerialize( - @RequestBody(required = false) String body + @RequestBody(required = false) @Nullable String body ); @@ -242,12 +243,12 @@ public interface FakeApi { contentType = "application/x-www-form-urlencoded" ) ResponseEntity testEnumParameters( - @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @RequestParam(value = "enum_form_string", required = false) String enumFormString ); @@ -274,9 +275,9 @@ public interface FakeApi { @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @RequestParam(value = "string_group", required = false) Integer stringGroup, - @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @RequestParam(value = "int64_group", required = false) Long int64Group + @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ); diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java index 8c3d60cc973..682fcbfedc2 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.ClientDto; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/PetApi.java index 7aeaa136275..ce3810a7f41 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/PetApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.PetDto; import org.openapitools.model.ResponseObjectWithDifferentFieldNamesDto; import java.util.Set; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -58,7 +59,7 @@ public interface PetApi { ) ResponseEntity deletePet( @PathVariable("petId") Long petId, - @RequestHeader(value = "api_key", required = false) String apiKey + @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ); diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/StoreApi.java index c36b3cd2e29..3553b2fbdfd 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/StoreApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.util.Map; import org.openapitools.model.OrderDto; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/UserApi.java index 8fafb9fabf9..e0a7fbaa449 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/UserApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.time.OffsetDateTime; import org.openapitools.model.UserDto; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.bind.annotation.*; import org.springframework.web.service.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesAnyTypeDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesAnyTypeDto.java index 9ce9c72f88c..40e204116a1 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesAnyTypeDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesAnyTypeDto.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesAnyTypeDto { private @Nullable String name; - public AdditionalPropertiesAnyTypeDto name(String name) { + public AdditionalPropertiesAnyTypeDto name(@Nullable String name) { this.name = name; return this; } @@ -39,11 +39,11 @@ public class AdditionalPropertiesAnyTypeDto { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesArrayDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesArrayDto.java index ac8c3ef4735..1ae21edce75 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesArrayDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesArrayDto.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesArrayDto { private @Nullable String name; - public AdditionalPropertiesArrayDto name(String name) { + public AdditionalPropertiesArrayDto name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesArrayDto { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesBooleanDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesBooleanDto.java index 50ab29270e1..4d6bfb759bf 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesBooleanDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesBooleanDto.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesBooleanDto { private @Nullable String name; - public AdditionalPropertiesBooleanDto name(String name) { + public AdditionalPropertiesBooleanDto name(@Nullable String name) { this.name = name; return this; } @@ -39,11 +39,11 @@ public class AdditionalPropertiesBooleanDto { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesClassDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesClassDto.java index c0d40e01a7c..c0fb00586ee 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesClassDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesClassDto.java @@ -275,7 +275,7 @@ public class AdditionalPropertiesClassDto { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClassDto anytype1(Object anytype1) { + public AdditionalPropertiesClassDto anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -286,11 +286,11 @@ public class AdditionalPropertiesClassDto { */ @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } @@ -313,7 +313,7 @@ public class AdditionalPropertiesClassDto { this.anytype2 = anytype2; } - public AdditionalPropertiesClassDto anytype3(Object anytype3) { + public AdditionalPropertiesClassDto anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -324,11 +324,11 @@ public class AdditionalPropertiesClassDto { */ @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesIntegerDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesIntegerDto.java index 10253e3292c..eb3aa529193 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesIntegerDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesIntegerDto.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesIntegerDto { private @Nullable String name; - public AdditionalPropertiesIntegerDto name(String name) { + public AdditionalPropertiesIntegerDto name(@Nullable String name) { this.name = name; return this; } @@ -39,11 +39,11 @@ public class AdditionalPropertiesIntegerDto { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesNumberDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesNumberDto.java index f8d894f99fe..d89dc02ff32 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesNumberDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesNumberDto.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesNumberDto { private @Nullable String name; - public AdditionalPropertiesNumberDto name(String name) { + public AdditionalPropertiesNumberDto name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesNumberDto { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesObjectDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesObjectDto.java index 6df09a44e79..362f004ffc6 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesObjectDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesObjectDto.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesObjectDto { private @Nullable String name; - public AdditionalPropertiesObjectDto name(String name) { + public AdditionalPropertiesObjectDto name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesObjectDto { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesStringDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesStringDto.java index d71ca8bfb9d..a653f0a3cee 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesStringDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesStringDto.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesStringDto { private @Nullable String name; - public AdditionalPropertiesStringDto name(String name) { + public AdditionalPropertiesStringDto name(@Nullable String name) { this.name = name; return this; } @@ -39,11 +39,11 @@ public class AdditionalPropertiesStringDto { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ApiResponseDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ApiResponseDto.java index 49242582adc..fee8a26f95a 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ApiResponseDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ApiResponseDto.java @@ -28,7 +28,7 @@ public class ApiResponseDto { private @Nullable String message; - public ApiResponseDto code(Integer code) { + public ApiResponseDto code(@Nullable Integer code) { this.code = code; return this; } @@ -39,15 +39,15 @@ public class ApiResponseDto { */ @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ApiResponseDto type(String type) { + public ApiResponseDto type(@Nullable String type) { this.type = type; return this; } @@ -58,15 +58,15 @@ public class ApiResponseDto { */ @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ApiResponseDto message(String message) { + public ApiResponseDto message(@Nullable String message) { this.message = message; return this; } @@ -77,11 +77,11 @@ public class ApiResponseDto { */ @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/BigCatDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/BigCatDto.java index 6855ab673fb..a63b58de415 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/BigCatDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/BigCatDto.java @@ -73,7 +73,7 @@ public class BigCatDto extends CatDto { super(); } - public BigCatDto kind(KindEnum kind) { + public BigCatDto kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -84,11 +84,11 @@ public class BigCatDto extends CatDto { */ @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CapitalizationDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CapitalizationDto.java index e27517782d4..ae9c5082660 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CapitalizationDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CapitalizationDto.java @@ -34,7 +34,7 @@ public class CapitalizationDto { private @Nullable String ATT_NAME; - public CapitalizationDto smallCamel(String smallCamel) { + public CapitalizationDto smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -45,15 +45,15 @@ public class CapitalizationDto { */ @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public CapitalizationDto capitalCamel(String capitalCamel) { + public CapitalizationDto capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -64,15 +64,15 @@ public class CapitalizationDto { */ @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public CapitalizationDto smallSnake(String smallSnake) { + public CapitalizationDto smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -83,15 +83,15 @@ public class CapitalizationDto { */ @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public CapitalizationDto capitalSnake(String capitalSnake) { + public CapitalizationDto capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -102,15 +102,15 @@ public class CapitalizationDto { */ @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public CapitalizationDto scAETHFlowPoints(String scAETHFlowPoints) { + public CapitalizationDto scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -121,15 +121,15 @@ public class CapitalizationDto { */ @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public CapitalizationDto ATT_NAME(String ATT_NAME) { + public CapitalizationDto ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -140,11 +140,11 @@ public class CapitalizationDto { */ @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CatDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CatDto.java index 1cd32fa4034..6e60cde517b 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CatDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CatDto.java @@ -40,7 +40,7 @@ public class CatDto extends AnimalDto { super(); } - public CatDto declawed(Boolean declawed) { + public CatDto declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -51,11 +51,11 @@ public class CatDto extends AnimalDto { */ @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CategoryDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CategoryDto.java index c1d07153c2d..55a0832c806 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CategoryDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CategoryDto.java @@ -30,7 +30,7 @@ public class CategoryDto { super(); } - public CategoryDto id(Long id) { + public CategoryDto id(@Nullable Long id) { this.id = id; return this; } @@ -41,11 +41,11 @@ public class CategoryDto { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ChildWithNullableDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ChildWithNullableDto.java index d7b48f53ccc..40fc4ce2364 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ChildWithNullableDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ChildWithNullableDto.java @@ -32,7 +32,7 @@ public class ChildWithNullableDto extends ParentWithNullableDto { private @Nullable String otherProperty; - public ChildWithNullableDto otherProperty(String otherProperty) { + public ChildWithNullableDto otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -43,11 +43,11 @@ public class ChildWithNullableDto extends ParentWithNullableDto { */ @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ClassModelDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ClassModelDto.java index d14e0eae077..587ffef3ffb 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ClassModelDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ClassModelDto.java @@ -24,7 +24,7 @@ public class ClassModelDto { private @Nullable String propertyClass; - public ClassModelDto propertyClass(String propertyClass) { + public ClassModelDto propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -35,11 +35,11 @@ public class ClassModelDto { */ @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ClientDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ClientDto.java index bbbd994f253..fd7a849eab4 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ClientDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ClientDto.java @@ -24,7 +24,7 @@ public class ClientDto { private @Nullable String client; - public ClientDto client(String client) { + public ClientDto client(@Nullable String client) { this.client = client; return this; } @@ -35,11 +35,11 @@ public class ClientDto { */ @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/DogDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/DogDto.java index da71cf80357..521efd17608 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/DogDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/DogDto.java @@ -33,7 +33,7 @@ public class DogDto extends AnimalDto { super(); } - public DogDto breed(String breed) { + public DogDto breed(@Nullable String breed) { this.breed = breed; return this; } @@ -44,11 +44,11 @@ public class DogDto extends AnimalDto { */ @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumArraysDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumArraysDto.java index e6897313a39..5e85461537c 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumArraysDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumArraysDto.java @@ -101,7 +101,7 @@ public class EnumArraysDto { private List arrayEnum = new ArrayList<>(); - public EnumArraysDto justSymbol(JustSymbolEnum justSymbol) { + public EnumArraysDto justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -112,11 +112,11 @@ public class EnumArraysDto { */ @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumTestDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumTestDto.java index 3b113e40828..f20d8b48449 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumTestDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumTestDto.java @@ -182,7 +182,7 @@ public class EnumTestDto { super(); } - public EnumTestDto enumString(EnumStringEnum enumString) { + public EnumTestDto enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -193,11 +193,11 @@ public class EnumTestDto { */ @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -220,7 +220,7 @@ public class EnumTestDto { this.enumStringRequired = enumStringRequired; } - public EnumTestDto enumInteger(EnumIntegerEnum enumInteger) { + public EnumTestDto enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -231,15 +231,15 @@ public class EnumTestDto { */ @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTestDto enumNumber(EnumNumberEnum enumNumber) { + public EnumTestDto enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -250,15 +250,15 @@ public class EnumTestDto { */ @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTestDto outerEnum(OuterEnumDto outerEnum) { + public EnumTestDto outerEnum(@Nullable OuterEnumDto outerEnum) { this.outerEnum = outerEnum; return this; } @@ -269,11 +269,11 @@ public class EnumTestDto { */ @JsonProperty("outerEnum") - public OuterEnumDto getOuterEnum() { + public @Nullable OuterEnumDto getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnumDto outerEnum) { + public void setOuterEnum(@Nullable OuterEnumDto outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FileDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FileDto.java index 531b77586e2..f6328321ebb 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FileDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FileDto.java @@ -24,7 +24,7 @@ public class FileDto { private @Nullable String sourceURI; - public FileDto sourceURI(String sourceURI) { + public FileDto sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -35,11 +35,11 @@ public class FileDto { */ @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FileSchemaTestClassDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FileSchemaTestClassDto.java index 7a8507a1484..d87aee1b89f 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FileSchemaTestClassDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FileSchemaTestClassDto.java @@ -31,7 +31,7 @@ public class FileSchemaTestClassDto { private List files = new ArrayList<>(); - public FileSchemaTestClassDto file(FileDto file) { + public FileSchemaTestClassDto file(@Nullable FileDto file) { this.file = file; return this; } @@ -42,11 +42,11 @@ public class FileSchemaTestClassDto { */ @JsonProperty("file") - public FileDto getFile() { + public @Nullable FileDto getFile() { return file; } - public void setFile(FileDto file) { + public void setFile(@Nullable FileDto file) { this.file = file; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FormatTestDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FormatTestDto.java index f56d9dcc7ee..7c8ebbb5f6c 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FormatTestDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FormatTestDto.java @@ -62,7 +62,7 @@ public class FormatTestDto { super(); } - public FormatTestDto integer(Integer integer) { + public FormatTestDto integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -75,15 +75,15 @@ public class FormatTestDto { */ @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTestDto int32(Integer int32) { + public FormatTestDto int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -96,15 +96,15 @@ public class FormatTestDto { */ @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTestDto int64(Long int64) { + public FormatTestDto int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -115,11 +115,11 @@ public class FormatTestDto { */ @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -144,7 +144,7 @@ public class FormatTestDto { this.number = number; } - public FormatTestDto _float(Float _float) { + public FormatTestDto _float(@Nullable Float _float) { this._float = _float; return this; } @@ -157,15 +157,15 @@ public class FormatTestDto { */ @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTestDto _double(Double _double) { + public FormatTestDto _double(@Nullable Double _double) { this._double = _double; return this; } @@ -178,15 +178,15 @@ public class FormatTestDto { */ @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTestDto string(String string) { + public FormatTestDto string(@Nullable String string) { this.string = string; return this; } @@ -197,11 +197,11 @@ public class FormatTestDto { */ @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -224,7 +224,7 @@ public class FormatTestDto { this._byte = _byte; } - public FormatTestDto binary(org.springframework.core.io.Resource binary) { + public FormatTestDto binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -235,11 +235,11 @@ public class FormatTestDto { */ @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -262,7 +262,7 @@ public class FormatTestDto { this.date = date; } - public FormatTestDto dateTime(OffsetDateTime dateTime) { + public FormatTestDto dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -273,15 +273,15 @@ public class FormatTestDto { */ @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTestDto uuid(UUID uuid) { + public FormatTestDto uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -292,11 +292,11 @@ public class FormatTestDto { */ @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -319,7 +319,7 @@ public class FormatTestDto { this.password = password; } - public FormatTestDto bigDecimal(BigDecimal bigDecimal) { + public FormatTestDto bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -330,11 +330,11 @@ public class FormatTestDto { */ @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/HasOnlyReadOnlyDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/HasOnlyReadOnlyDto.java index dd6ebc4b0cd..d11bd784152 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/HasOnlyReadOnlyDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/HasOnlyReadOnlyDto.java @@ -26,7 +26,7 @@ public class HasOnlyReadOnlyDto { private @Nullable String foo; - public HasOnlyReadOnlyDto bar(String bar) { + public HasOnlyReadOnlyDto bar(@Nullable String bar) { this.bar = bar; return this; } @@ -37,15 +37,15 @@ public class HasOnlyReadOnlyDto { */ @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnlyDto foo(String foo) { + public HasOnlyReadOnlyDto foo(@Nullable String foo) { this.foo = foo; return this; } @@ -56,11 +56,11 @@ public class HasOnlyReadOnlyDto { */ @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ListDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ListDto.java index c5808d87190..f20458d8806 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ListDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ListDto.java @@ -24,7 +24,7 @@ public class ListDto { private @Nullable String _123list; - public ListDto _123list(String _123list) { + public ListDto _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -35,11 +35,11 @@ public class ListDto { */ @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java index 9ac793df577..8c0b48b33e6 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java @@ -36,7 +36,7 @@ public class MixedPropertiesAndAdditionalPropertiesClassDto { private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClassDto uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClassDto uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -47,15 +47,15 @@ public class MixedPropertiesAndAdditionalPropertiesClassDto { */ @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClassDto dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClassDto dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -66,11 +66,11 @@ public class MixedPropertiesAndAdditionalPropertiesClassDto { */ @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/Model200ResponseDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/Model200ResponseDto.java index c90ea042da8..9ab3a2c445f 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/Model200ResponseDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/Model200ResponseDto.java @@ -26,7 +26,7 @@ public class Model200ResponseDto { private @Nullable String propertyClass; - public Model200ResponseDto name(Integer name) { + public Model200ResponseDto name(@Nullable Integer name) { this.name = name; return this; } @@ -37,15 +37,15 @@ public class Model200ResponseDto { */ @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200ResponseDto propertyClass(String propertyClass) { + public Model200ResponseDto propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -56,11 +56,11 @@ public class Model200ResponseDto { */ @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NameDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NameDto.java index 7f21b0d1c27..a12ecc2a118 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NameDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NameDto.java @@ -53,7 +53,7 @@ public class NameDto { this.name = name; } - public NameDto snakeCase(Integer snakeCase) { + public NameDto snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -64,15 +64,15 @@ public class NameDto { */ @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public NameDto property(String property) { + public NameDto property(@Nullable String property) { this.property = property; return this; } @@ -83,15 +83,15 @@ public class NameDto { */ @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public NameDto _123number(Integer _123number) { + public NameDto _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -102,11 +102,11 @@ public class NameDto { */ @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NumberOnlyDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NumberOnlyDto.java index 6aed23dc5cd..5fc6d0aaf0a 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NumberOnlyDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NumberOnlyDto.java @@ -25,7 +25,7 @@ public class NumberOnlyDto { private @Nullable BigDecimal justNumber; - public NumberOnlyDto justNumber(BigDecimal justNumber) { + public NumberOnlyDto justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -36,11 +36,11 @@ public class NumberOnlyDto { */ @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OrderDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OrderDto.java index 3213a4834f8..810e46516c3 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OrderDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OrderDto.java @@ -75,7 +75,7 @@ public class OrderDto { private Boolean complete = false; - public OrderDto id(Long id) { + public OrderDto id(@Nullable Long id) { this.id = id; return this; } @@ -86,15 +86,15 @@ public class OrderDto { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public OrderDto petId(Long petId) { + public OrderDto petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -105,15 +105,15 @@ public class OrderDto { */ @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public OrderDto quantity(Integer quantity) { + public OrderDto quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -124,15 +124,15 @@ public class OrderDto { */ @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public OrderDto shipDate(OffsetDateTime shipDate) { + public OrderDto shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -143,15 +143,15 @@ public class OrderDto { */ @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public OrderDto status(StatusEnum status) { + public OrderDto status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -162,11 +162,11 @@ public class OrderDto { */ @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OuterCompositeDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OuterCompositeDto.java index d6d971b70de..02657a50603 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OuterCompositeDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OuterCompositeDto.java @@ -29,7 +29,7 @@ public class OuterCompositeDto { private @Nullable Boolean myBoolean; - public OuterCompositeDto myNumber(BigDecimal myNumber) { + public OuterCompositeDto myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -40,15 +40,15 @@ public class OuterCompositeDto { */ @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterCompositeDto myString(String myString) { + public OuterCompositeDto myString(@Nullable String myString) { this.myString = myString; return this; } @@ -59,15 +59,15 @@ public class OuterCompositeDto { */ @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterCompositeDto myBoolean(Boolean myBoolean) { + public OuterCompositeDto myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -78,11 +78,11 @@ public class OuterCompositeDto { */ @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ParentWithNullableDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ParentWithNullableDto.java index 973da496e83..90458d0a327 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ParentWithNullableDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ParentWithNullableDto.java @@ -74,7 +74,7 @@ public class ParentWithNullableDto { private JsonNullable nullableProperty = JsonNullable.undefined(); - public ParentWithNullableDto type(TypeEnum type) { + public ParentWithNullableDto type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -85,11 +85,11 @@ public class ParentWithNullableDto { */ @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/PetDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/PetDto.java index baf1a692105..7695b075b5a 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/PetDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/PetDto.java @@ -87,7 +87,7 @@ public class PetDto { super(); } - public PetDto id(Long id) { + public PetDto id(@Nullable Long id) { this.id = id; return this; } @@ -98,15 +98,15 @@ public class PetDto { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public PetDto category(CategoryDto category) { + public PetDto category(@Nullable CategoryDto category) { this.category = category; return this; } @@ -117,11 +117,11 @@ public class PetDto { */ @JsonProperty("category") - public CategoryDto getCategory() { + public @Nullable CategoryDto getCategory() { return category; } - public void setCategory(CategoryDto category) { + public void setCategory(@Nullable CategoryDto category) { this.category = category; } @@ -199,7 +199,7 @@ public class PetDto { this.tags = tags; } - public PetDto status(StatusEnum status) { + public PetDto status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -212,7 +212,7 @@ public class PetDto { @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -220,7 +220,7 @@ public class PetDto { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ReadOnlyFirstDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ReadOnlyFirstDto.java index 4c93c993116..d1d2f3ce267 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ReadOnlyFirstDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ReadOnlyFirstDto.java @@ -26,7 +26,7 @@ public class ReadOnlyFirstDto { private @Nullable String baz; - public ReadOnlyFirstDto bar(String bar) { + public ReadOnlyFirstDto bar(@Nullable String bar) { this.bar = bar; return this; } @@ -37,15 +37,15 @@ public class ReadOnlyFirstDto { */ @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirstDto baz(String baz) { + public ReadOnlyFirstDto baz(@Nullable String baz) { this.baz = baz; return this; } @@ -56,11 +56,11 @@ public class ReadOnlyFirstDto { */ @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNamesDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNamesDto.java index ebf3c803735..98262e290b6 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNamesDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNamesDto.java @@ -30,7 +30,7 @@ public class ResponseObjectWithDifferentFieldNamesDto { private @Nullable String propertyNameWithSpaces; - public ResponseObjectWithDifferentFieldNamesDto normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNamesDto normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -41,15 +41,15 @@ public class ResponseObjectWithDifferentFieldNamesDto { */ @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNamesDto UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNamesDto UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -60,15 +60,15 @@ public class ResponseObjectWithDifferentFieldNamesDto { */ @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNamesDto lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNamesDto lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -79,15 +79,15 @@ public class ResponseObjectWithDifferentFieldNamesDto { */ @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNamesDto propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNamesDto propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -98,11 +98,11 @@ public class ResponseObjectWithDifferentFieldNamesDto { */ @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ReturnDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ReturnDto.java index 67372847e3f..d38fc76980b 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ReturnDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ReturnDto.java @@ -24,7 +24,7 @@ public class ReturnDto { private @Nullable Integer _return; - public ReturnDto _return(Integer _return) { + public ReturnDto _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -35,11 +35,11 @@ public class ReturnDto { */ @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/SpecialModelNameDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/SpecialModelNameDto.java index 83476b9ca56..456f94209aa 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/SpecialModelNameDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/SpecialModelNameDto.java @@ -24,7 +24,7 @@ public class SpecialModelNameDto { private @Nullable Long $specialPropertyName; - public SpecialModelNameDto $specialPropertyName(Long $specialPropertyName) { + public SpecialModelNameDto $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -35,11 +35,11 @@ public class SpecialModelNameDto { */ @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TagDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TagDto.java index 800685db516..4650aa2c9d9 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TagDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TagDto.java @@ -26,7 +26,7 @@ public class TagDto { private @Nullable String name; - public TagDto id(Long id) { + public TagDto id(@Nullable Long id) { this.id = id; return this; } @@ -37,15 +37,15 @@ public class TagDto { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public TagDto name(String name) { + public TagDto name(@Nullable String name) { this.name = name; return this; } @@ -56,11 +56,11 @@ public class TagDto { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/UserDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/UserDto.java index d6f764de1af..74c97fd6d19 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/UserDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/UserDto.java @@ -38,7 +38,7 @@ public class UserDto { private @Nullable Integer userStatus; - public UserDto id(Long id) { + public UserDto id(@Nullable Long id) { this.id = id; return this; } @@ -49,15 +49,15 @@ public class UserDto { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public UserDto username(String username) { + public UserDto username(@Nullable String username) { this.username = username; return this; } @@ -68,15 +68,15 @@ public class UserDto { */ @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public UserDto firstName(String firstName) { + public UserDto firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -87,15 +87,15 @@ public class UserDto { */ @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public UserDto lastName(String lastName) { + public UserDto lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -106,15 +106,15 @@ public class UserDto { */ @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public UserDto email(String email) { + public UserDto email(@Nullable String email) { this.email = email; return this; } @@ -125,15 +125,15 @@ public class UserDto { */ @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public UserDto password(String password) { + public UserDto password(@Nullable String password) { this.password = password; return this; } @@ -144,15 +144,15 @@ public class UserDto { */ @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public UserDto phone(String phone) { + public UserDto phone(@Nullable String phone) { this.phone = phone; return this; } @@ -163,15 +163,15 @@ public class UserDto { */ @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public UserDto userStatus(Integer userStatus) { + public UserDto userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -182,11 +182,11 @@ public class UserDto { */ @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/XmlItemDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/XmlItemDto.java index d67617003c0..15762073cb5 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/XmlItemDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/XmlItemDto.java @@ -93,7 +93,7 @@ public class XmlItemDto { private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItemDto attributeString(String attributeString) { + public XmlItemDto attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -104,15 +104,15 @@ public class XmlItemDto { */ @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItemDto attributeNumber(BigDecimal attributeNumber) { + public XmlItemDto attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -123,15 +123,15 @@ public class XmlItemDto { */ @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItemDto attributeInteger(Integer attributeInteger) { + public XmlItemDto attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -142,15 +142,15 @@ public class XmlItemDto { */ @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItemDto attributeBoolean(Boolean attributeBoolean) { + public XmlItemDto attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -161,11 +161,11 @@ public class XmlItemDto { */ @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -196,7 +196,7 @@ public class XmlItemDto { this.wrappedArray = wrappedArray; } - public XmlItemDto nameString(String nameString) { + public XmlItemDto nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -207,15 +207,15 @@ public class XmlItemDto { */ @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItemDto nameNumber(BigDecimal nameNumber) { + public XmlItemDto nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -226,15 +226,15 @@ public class XmlItemDto { */ @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItemDto nameInteger(Integer nameInteger) { + public XmlItemDto nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -245,15 +245,15 @@ public class XmlItemDto { */ @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItemDto nameBoolean(Boolean nameBoolean) { + public XmlItemDto nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -264,11 +264,11 @@ public class XmlItemDto { */ @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -326,7 +326,7 @@ public class XmlItemDto { this.nameWrappedArray = nameWrappedArray; } - public XmlItemDto prefixString(String prefixString) { + public XmlItemDto prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -337,15 +337,15 @@ public class XmlItemDto { */ @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItemDto prefixNumber(BigDecimal prefixNumber) { + public XmlItemDto prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -356,15 +356,15 @@ public class XmlItemDto { */ @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItemDto prefixInteger(Integer prefixInteger) { + public XmlItemDto prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -375,15 +375,15 @@ public class XmlItemDto { */ @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItemDto prefixBoolean(Boolean prefixBoolean) { + public XmlItemDto prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -394,11 +394,11 @@ public class XmlItemDto { */ @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -456,7 +456,7 @@ public class XmlItemDto { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItemDto namespaceString(String namespaceString) { + public XmlItemDto namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -467,15 +467,15 @@ public class XmlItemDto { */ @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItemDto namespaceNumber(BigDecimal namespaceNumber) { + public XmlItemDto namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -486,15 +486,15 @@ public class XmlItemDto { */ @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItemDto namespaceInteger(Integer namespaceInteger) { + public XmlItemDto namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -505,15 +505,15 @@ public class XmlItemDto { */ @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItemDto namespaceBoolean(Boolean namespaceBoolean) { + public XmlItemDto namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -524,11 +524,11 @@ public class XmlItemDto { */ @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -586,7 +586,7 @@ public class XmlItemDto { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItemDto prefixNsString(String prefixNsString) { + public XmlItemDto prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -597,15 +597,15 @@ public class XmlItemDto { */ @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItemDto prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItemDto prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -616,15 +616,15 @@ public class XmlItemDto { */ @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItemDto prefixNsInteger(Integer prefixNsInteger) { + public XmlItemDto prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -635,15 +635,15 @@ public class XmlItemDto { */ @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItemDto prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItemDto prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -654,11 +654,11 @@ public class XmlItemDto { */ @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/openapi3/client/petstore/spring-cloud-3-with-optional/src/main/java/org/openapitools/api/PetApi.java b/samples/openapi3/client/petstore/spring-cloud-3-with-optional/src/main/java/org/openapitools/api/PetApi.java index 282cf379a85..8e86d31e945 100644 --- a/samples/openapi3/client/petstore/spring-cloud-3-with-optional/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-3-with-optional/src/main/java/org/openapitools/api/PetApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.Pet; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-cloud-3-with-optional/src/main/java/org/openapitools/api/StoreApi.java b/samples/openapi3/client/petstore/spring-cloud-3-with-optional/src/main/java/org/openapitools/api/StoreApi.java index 1af46c9a554..34d305d7b2f 100644 --- a/samples/openapi3/client/petstore/spring-cloud-3-with-optional/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-3-with-optional/src/main/java/org/openapitools/api/StoreApi.java @@ -9,6 +9,7 @@ import java.util.Map; import org.openapitools.model.Order; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-cloud-3-with-optional/src/main/java/org/openapitools/api/UserApi.java b/samples/openapi3/client/petstore/spring-cloud-3-with-optional/src/main/java/org/openapitools/api/UserApi.java index 8b68440692f..1d539f1e6c1 100644 --- a/samples/openapi3/client/petstore/spring-cloud-3-with-optional/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-3-with-optional/src/main/java/org/openapitools/api/UserApi.java @@ -9,6 +9,7 @@ import java.time.OffsetDateTime; import org.openapitools.model.User; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/api/PetApi.java b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/api/PetApi.java index 58f3affacc8..91d1d36debb 100644 --- a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/api/PetApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -102,7 +103,7 @@ public interface PetApi { ResponseEntity deletePet( @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId, - @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) String apiKey + @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ); diff --git a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/api/StoreApi.java b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/api/StoreApi.java index 4c1a224cf19..b8b8eee70d6 100644 --- a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/api/StoreApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/api/UserApi.java b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/api/UserApi.java index f9f7d786e4a..abba3207c23 100644 --- a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/api/UserApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/Category.java b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/Category.java index b2c04d0949d..da305c22ca0 100644 --- a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/Category.java +++ b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/Category.java @@ -27,7 +27,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Category { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Category { @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/ModelApiResponse.java index 119789df3d6..0cf7d130582 100644 --- a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/Order.java b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/Order.java index f648544c6b1..822435d2a0c 100644 --- a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/Order.java +++ b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/Pet.java b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/Pet.java index b53c806b8e1..6e170f8679b 100644 --- a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/Pet.java +++ b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/Pet.java @@ -93,7 +93,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public class Pet { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -125,11 +125,11 @@ public class Pet { @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -209,7 +209,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public class Pet { @Schema(name = "status", description = "pet status in the store", deprecated = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -231,7 +231,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/Tag.java b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/Tag.java index 96a8a4339c0..556fec8368f 100644 --- a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/Tag.java +++ b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/User.java b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/User.java index 308cae933a2..650e0fff926 100644 --- a/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/User.java +++ b/samples/openapi3/client/petstore/spring-cloud-3/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java index 2f9f5a93f61..0cd217a6d19 100644 --- a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/PetApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -103,7 +104,7 @@ public interface PetApi { CompletableFuture> deletePet( @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId, - @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) String apiKey + @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ); diff --git a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java index 38731b1e237..8e86bb057c7 100644 --- a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/StoreApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java index 24b50179629..22982d4b079 100644 --- a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/api/UserApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java index 38f132ba454..52ef92b93e2 100644 --- a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java +++ b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Category.java @@ -27,7 +27,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Category { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Category { @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java index fa47f8d98c3..62273b74b4c 100644 --- a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java index f5a068284e8..30931ba03e0 100644 --- a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java +++ b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java index d52989b56c2..ffefbca982c 100644 --- a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java +++ b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java @@ -93,7 +93,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public class Pet { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -125,11 +125,11 @@ public class Pet { @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -209,7 +209,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public class Pet { @Schema(name = "status", description = "pet status in the store", deprecated = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -231,7 +231,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java index 69fd62f84e4..4c6df0f0931 100644 --- a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java +++ b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java index b6206a76796..08a3518b7b4 100644 --- a/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java +++ b/samples/openapi3/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/openapi3/client/petstore/spring-cloud-date-time/src/main/java/org/openapitools/api/DefaultApi.java b/samples/openapi3/client/petstore/spring-cloud-date-time/src/main/java/org/openapitools/api/DefaultApi.java index 22d81bc3af6..ed796e3594a 100644 --- a/samples/openapi3/client/petstore/spring-cloud-date-time/src/main/java/org/openapitools/api/DefaultApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-date-time/src/main/java/org/openapitools/api/DefaultApi.java @@ -22,6 +22,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-cloud-http-basic/src/main/java/org/openapitools/api/PetApi.java b/samples/openapi3/client/petstore/spring-cloud-http-basic/src/main/java/org/openapitools/api/PetApi.java index 4b7e5033f56..3169e5ec44c 100644 --- a/samples/openapi3/client/petstore/spring-cloud-http-basic/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-http-basic/src/main/java/org/openapitools/api/PetApi.java @@ -20,6 +20,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-cloud-http-basic/src/main/java/org/openapitools/model/Category.java b/samples/openapi3/client/petstore/spring-cloud-http-basic/src/main/java/org/openapitools/model/Category.java index 38f132ba454..52ef92b93e2 100644 --- a/samples/openapi3/client/petstore/spring-cloud-http-basic/src/main/java/org/openapitools/model/Category.java +++ b/samples/openapi3/client/petstore/spring-cloud-http-basic/src/main/java/org/openapitools/model/Category.java @@ -27,7 +27,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Category { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Category { @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/spring-cloud-http-basic/src/main/java/org/openapitools/model/Pet.java b/samples/openapi3/client/petstore/spring-cloud-http-basic/src/main/java/org/openapitools/model/Pet.java index d52989b56c2..ffefbca982c 100644 --- a/samples/openapi3/client/petstore/spring-cloud-http-basic/src/main/java/org/openapitools/model/Pet.java +++ b/samples/openapi3/client/petstore/spring-cloud-http-basic/src/main/java/org/openapitools/model/Pet.java @@ -93,7 +93,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public class Pet { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -125,11 +125,11 @@ public class Pet { @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -209,7 +209,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public class Pet { @Schema(name = "status", description = "pet status in the store", deprecated = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -231,7 +231,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/spring-cloud-http-basic/src/main/java/org/openapitools/model/Tag.java b/samples/openapi3/client/petstore/spring-cloud-http-basic/src/main/java/org/openapitools/model/Tag.java index 69fd62f84e4..4c6df0f0931 100644 --- a/samples/openapi3/client/petstore/spring-cloud-http-basic/src/main/java/org/openapitools/model/Tag.java +++ b/samples/openapi3/client/petstore/spring-cloud-http-basic/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/AnotherFakeApi.java index 8c051acdaab..3c61726ecf9 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -20,6 +20,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/FakeApi.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/FakeApi.java index facf4ffe3df..46e11a03a61 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/FakeApi.java @@ -30,6 +30,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -100,7 +101,7 @@ public interface FakeApi { ) ResponseEntity fakeOuterBooleanSerialize( - @Parameter(name = "body", description = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body + @Parameter(name = "body", description = "Input boolean as post body") @Valid @RequestBody(required = false) @Nullable Boolean body ); @@ -129,7 +130,7 @@ public interface FakeApi { ) ResponseEntity fakeOuterCompositeSerialize( - @Parameter(name = "OuterComposite", description = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite outerComposite + @Parameter(name = "OuterComposite", description = "Input composite as post body") @Valid @RequestBody(required = false) @Nullable OuterComposite outerComposite ); @@ -158,7 +159,7 @@ public interface FakeApi { ) ResponseEntity fakeOuterNumberSerialize( - @Parameter(name = "body", description = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body + @Parameter(name = "body", description = "Input number as post body") @Valid @RequestBody(required = false) @Nullable BigDecimal body ); @@ -187,7 +188,7 @@ public interface FakeApi { ) ResponseEntity fakeOuterStringSerialize( - @Parameter(name = "body", description = "Input string as post body") @Valid @RequestBody(required = false) String body + @Parameter(name = "body", description = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body ); @@ -363,12 +364,12 @@ public interface FakeApi { ) ResponseEntity testEnumParameters( - @Parameter(name = "enum_header_string_array", description = "Header parameter enum test (string array)", in = ParameterIn.HEADER) @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @Parameter(name = "enum_header_string_array", description = "Header parameter enum test (string array)", in = ParameterIn.HEADER) @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @Parameter(name = "enum_header_string", description = "Header parameter enum test (string)", in = ParameterIn.HEADER) @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @Parameter(name = "enum_query_string_array", description = "Query parameter enum test (string array)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @Parameter(name = "enum_query_string_array", description = "Query parameter enum test (string array)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @Parameter(name = "enum_query_string", description = "Query parameter enum test (string)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @Parameter(name = "enum_query_integer", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @Parameter(name = "enum_query_double", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @Parameter(name = "enum_query_integer", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @Parameter(name = "enum_query_double", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @Parameter(name = "enum_form_string_array", description = "Form parameter enum test (string array)") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @Parameter(name = "enum_form_string", description = "Form parameter enum test (string)") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString ); @@ -404,9 +405,9 @@ public interface FakeApi { @NotNull @Parameter(name = "required_string_group", description = "Required String in group parameters", required = true, in = ParameterIn.QUERY) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @Parameter(name = "required_boolean_group", description = "Required Boolean in group parameters", required = true, in = ParameterIn.HEADER) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @NotNull @Parameter(name = "required_int64_group", description = "Required Integer in group parameters", required = true, in = ParameterIn.QUERY) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @Parameter(name = "string_group", description = "String in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @Parameter(name = "boolean_group", description = "Boolean in group parameters", in = ParameterIn.HEADER) @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @Parameter(name = "int64_group", description = "Integer in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + @Parameter(name = "string_group", description = "String in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @Parameter(name = "boolean_group", description = "Boolean in group parameters", in = ParameterIn.HEADER) @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @Parameter(name = "int64_group", description = "Integer in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ); diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java index ba874f95a17..cb3a52a1cd9 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java @@ -20,6 +20,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/PetApi.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/PetApi.java index 1b1105fc6c0..5ac18e5a2aa 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/PetApi.java @@ -23,6 +23,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -102,7 +103,7 @@ public interface PetApi { ResponseEntity deletePet( @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId, - @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) String apiKey + @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ); diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/StoreApi.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/StoreApi.java index 0149821657b..f909e26ddd0 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/StoreApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/UserApi.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/UserApi.java index 370d4dc84ee..ab53b25fdb2 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/UserApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 830bbb7313d..96f67600df9 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesAnyType { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index bf1595a96f9..c1667ca6104 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesArray { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 52fffbdf38a..76db03e378c 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesBoolean { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index d4c05a241d5..63327058ed2 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -283,7 +283,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -295,11 +295,11 @@ public class AdditionalPropertiesClass { @Schema(name = "anytype_1", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } @@ -323,7 +323,7 @@ public class AdditionalPropertiesClass { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -335,11 +335,11 @@ public class AdditionalPropertiesClass { @Schema(name = "anytype_3", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 72ab9cbaf32..71832b3934a 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesInteger { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 5c61bb980aa..54c84c7a299 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesNumber { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index c5b9a7c551f..5aad3f623d8 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesObject { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 69ba6448e25..15aa4bd856d 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesString { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/BigCat.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/BigCat.java index 13c0e99ca20..f47dd942964 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/BigCat.java @@ -73,7 +73,7 @@ public class BigCat extends Cat { super(); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -85,11 +85,11 @@ public class BigCat extends Cat { @Schema(name = "kind", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Capitalization.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Capitalization.java index 5068cf5192b..8061352c68f 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Capitalization.java @@ -34,7 +34,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -46,15 +46,15 @@ public class Capitalization { @Schema(name = "smallCamel", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -66,15 +66,15 @@ public class Capitalization { @Schema(name = "CapitalCamel", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -86,15 +86,15 @@ public class Capitalization { @Schema(name = "small_Snake", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -106,15 +106,15 @@ public class Capitalization { @Schema(name = "Capital_Snake", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -126,15 +126,15 @@ public class Capitalization { @Schema(name = "SCA_ETH_Flow_Points", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -146,11 +146,11 @@ public class Capitalization { @Schema(name = "ATT_NAME", description = "Name of the pet ", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Cat.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Cat.java index 2df0b56c946..7ae27b2fc08 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Cat.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Cat.java @@ -41,7 +41,7 @@ public class Cat extends Animal { super(); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -53,11 +53,11 @@ public class Cat extends Animal { @Schema(name = "declawed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Category.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Category.java index 3344fc6130b..4e7ac458f29 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Category.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Category.java @@ -30,7 +30,7 @@ public class Category { super(); } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -42,11 +42,11 @@ public class Category { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ChildWithNullable.java index 61fadeb20ae..08d29fd9d1c 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -32,7 +32,7 @@ public class ChildWithNullable extends ParentWithNullable { private @Nullable String otherProperty; - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -44,11 +44,11 @@ public class ChildWithNullable extends ParentWithNullable { @Schema(name = "otherProperty", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ClassModel.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ClassModel.java index b488d65a4d9..c8d79f06b3c 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ClassModel.java @@ -25,7 +25,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -37,11 +37,11 @@ public class ClassModel { @Schema(name = "_class", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Client.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Client.java index 2ac879d2247..93e6e610961 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Client.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Client.java @@ -24,7 +24,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -36,11 +36,11 @@ public class Client { @Schema(name = "client", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Dog.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Dog.java index 69cf44899ae..288fa126ec5 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Dog.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Dog.java @@ -33,7 +33,7 @@ public class Dog extends Animal { super(); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -45,11 +45,11 @@ public class Dog extends Animal { @Schema(name = "breed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/EnumArrays.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/EnumArrays.java index 18661a6b527..3eb15047d97 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/EnumArrays.java @@ -101,7 +101,7 @@ public class EnumArrays { @Valid private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -113,11 +113,11 @@ public class EnumArrays { @Schema(name = "just_symbol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/EnumTest.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/EnumTest.java index 3b6f8fe7348..a393a8aa199 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/EnumTest.java @@ -184,7 +184,7 @@ public class EnumTest { super(); } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -196,11 +196,11 @@ public class EnumTest { @Schema(name = "enum_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -224,7 +224,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -236,15 +236,15 @@ public class EnumTest { @Schema(name = "enum_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -256,15 +256,15 @@ public class EnumTest { @Schema(name = "enum_number", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -276,11 +276,11 @@ public class EnumTest { @Valid @Schema(name = "outerEnum", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/File.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/File.java index d1c656bf869..eaeb1a5deeb 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/File.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/File.java @@ -25,7 +25,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -37,11 +37,11 @@ public class File { @Schema(name = "sourceURI", description = "Test capitalization", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/FileSchemaTestClass.java index d620fcb5c5b..f2ab210d147 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -31,7 +31,7 @@ public class FileSchemaTestClass { @Valid private List<@Valid File> files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -43,11 +43,11 @@ public class FileSchemaTestClass { @Valid @Schema(name = "file", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/FormatTest.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/FormatTest.java index 1d29139ed80..ef1ff2d7f1a 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/FormatTest.java @@ -64,7 +64,7 @@ public class FormatTest { super(); } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -78,15 +78,15 @@ public class FormatTest { @Min(10) @Max(100) @Schema(name = "integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -100,15 +100,15 @@ public class FormatTest { @Min(20) @Max(200) @Schema(name = "int32", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -120,11 +120,11 @@ public class FormatTest { @Schema(name = "int64", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -150,7 +150,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -164,15 +164,15 @@ public class FormatTest { @DecimalMin("54.3") @DecimalMax("987.6") @Schema(name = "float", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -186,15 +186,15 @@ public class FormatTest { @DecimalMin("67.8") @DecimalMax("123.4") @Schema(name = "double", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -206,11 +206,11 @@ public class FormatTest { @Pattern(regexp = "/[a-z]/i") @Schema(name = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -234,7 +234,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -246,11 +246,11 @@ public class FormatTest { @Valid @Schema(name = "binary", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -274,7 +274,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -286,15 +286,15 @@ public class FormatTest { @Valid @Schema(name = "dateTime", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -306,11 +306,11 @@ public class FormatTest { @Valid @Schema(name = "uuid", example = "72f98069-206d-4f12-9f12-3d1e525a8e84", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -334,7 +334,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -346,11 +346,11 @@ public class FormatTest { @Valid @Schema(name = "BigDecimal", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 81f356e7131..eba1d75a4cb 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -28,7 +28,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -40,15 +40,15 @@ public class HasOnlyReadOnly { @Schema(name = "bar", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -60,11 +60,11 @@ public class HasOnlyReadOnly { @Schema(name = "foo", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index e59884edcbf..240b93433ef 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -36,7 +36,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -48,15 +48,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @Schema(name = "uuid", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -68,11 +68,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @Schema(name = "dateTime", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Model200Response.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Model200Response.java index adb553d7128..9b2e9c3fdd0 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Model200Response.java @@ -29,7 +29,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -41,15 +41,15 @@ public class Model200Response { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -61,11 +61,11 @@ public class Model200Response { @Schema(name = "class", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ModelApiResponse.java index 159c9942618..53239483e97 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -30,7 +30,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -42,15 +42,15 @@ public class ModelApiResponse { @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -62,15 +62,15 @@ public class ModelApiResponse { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -82,11 +82,11 @@ public class ModelApiResponse { @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ModelList.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ModelList.java index a1eb773676b..9ccf8e4b5bc 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ModelList.java @@ -26,7 +26,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -38,11 +38,11 @@ public class ModelList { @Schema(name = "123-list", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ModelReturn.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ModelReturn.java index aad5cf1a29d..3ebc70736ad 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ModelReturn.java @@ -27,7 +27,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -39,11 +39,11 @@ public class ModelReturn { @Schema(name = "return", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Name.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Name.java index 463070359ab..ff4889026f4 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Name.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Name.java @@ -55,7 +55,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -67,15 +67,15 @@ public class Name { @Schema(name = "snake_case", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -87,15 +87,15 @@ public class Name { @Schema(name = "property", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -107,11 +107,11 @@ public class Name { @Schema(name = "123Number", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/NumberOnly.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/NumberOnly.java index c8af44357a8..4cee785c4fa 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/NumberOnly.java @@ -25,7 +25,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -37,11 +37,11 @@ public class NumberOnly { @Valid @Schema(name = "JustNumber", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Order.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Order.java index f0cf689c356..76c1be4fdbb 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Order.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Order.java @@ -75,7 +75,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -87,15 +87,15 @@ public class Order { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -107,15 +107,15 @@ public class Order { @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -127,15 +127,15 @@ public class Order { @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -147,15 +147,15 @@ public class Order { @Valid @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -167,11 +167,11 @@ public class Order { @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/OuterComposite.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/OuterComposite.java index badf9bcd012..e8c016b7d3b 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/OuterComposite.java @@ -29,7 +29,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -41,15 +41,15 @@ public class OuterComposite { @Valid @Schema(name = "my_number", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -61,15 +61,15 @@ public class OuterComposite { @Schema(name = "my_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -81,11 +81,11 @@ public class OuterComposite { @Schema(name = "my_boolean", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ParentWithNullable.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ParentWithNullable.java index 759ce2361a1..26d56f6dc36 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ParentWithNullable.java @@ -75,7 +75,7 @@ public class ParentWithNullable { private JsonNullable nullableProperty = JsonNullable.undefined(); - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -87,11 +87,11 @@ public class ParentWithNullable { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Pet.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Pet.java index fdbf59b3902..3f2b9045552 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Pet.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Pet.java @@ -87,7 +87,7 @@ public class Pet { super(); } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -99,15 +99,15 @@ public class Pet { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -119,11 +119,11 @@ public class Pet { @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -204,7 +204,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -218,7 +218,7 @@ public class Pet { @Schema(name = "status", description = "pet status in the store", deprecated = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -226,7 +226,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ReadOnlyFirst.java index fb39cd3b9b4..8b1e50c5baf 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -26,7 +26,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -38,15 +38,15 @@ public class ReadOnlyFirst { @Schema(name = "bar", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -58,11 +58,11 @@ public class ReadOnlyFirst { @Schema(name = "baz", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java index fd046d7fe6b..943e77a3676 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java @@ -30,7 +30,7 @@ public class ResponseObjectWithDifferentFieldNames { private @Nullable String propertyNameWithSpaces; - public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNames normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -42,15 +42,15 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "normalPropertyName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -62,15 +62,15 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "UPPER_CASE_PROPERTY_SNAKE", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -82,15 +82,15 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "lower-case-property-dashes", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -102,11 +102,11 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "property name with spaces", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/SpecialModelName.java index 342d0437dec..68bce8ca908 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/SpecialModelName.java @@ -26,7 +26,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -38,11 +38,11 @@ public class SpecialModelName { @Schema(name = "$special[property.name]", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Tag.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Tag.java index f7dd6a14494..e8b67439e58 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Tag.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/Tag.java @@ -26,7 +26,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -38,15 +38,15 @@ public class Tag { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -58,11 +58,11 @@ public class Tag { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/User.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/User.java index 98c76f55ce9..a56fd230247 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/User.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/User.java @@ -38,7 +38,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -50,15 +50,15 @@ public class User { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -70,15 +70,15 @@ public class User { @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -90,15 +90,15 @@ public class User { @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -110,15 +110,15 @@ public class User { @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -130,15 +130,15 @@ public class User { @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -150,15 +150,15 @@ public class User { @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -170,15 +170,15 @@ public class User { @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -190,11 +190,11 @@ public class User { @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/XmlItem.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/XmlItem.java index 8fb1a3ebcdf..f4292bd33da 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/XmlItem.java @@ -93,7 +93,7 @@ public class XmlItem { @Valid private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -105,15 +105,15 @@ public class XmlItem { @Schema(name = "attribute_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -125,15 +125,15 @@ public class XmlItem { @Valid @Schema(name = "attribute_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -145,15 +145,15 @@ public class XmlItem { @Schema(name = "attribute_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -165,11 +165,11 @@ public class XmlItem { @Schema(name = "attribute_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -201,7 +201,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -213,15 +213,15 @@ public class XmlItem { @Schema(name = "name_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -233,15 +233,15 @@ public class XmlItem { @Valid @Schema(name = "name_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -253,15 +253,15 @@ public class XmlItem { @Schema(name = "name_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -273,11 +273,11 @@ public class XmlItem { @Schema(name = "name_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -337,7 +337,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -349,15 +349,15 @@ public class XmlItem { @Schema(name = "prefix_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -369,15 +369,15 @@ public class XmlItem { @Valid @Schema(name = "prefix_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -389,15 +389,15 @@ public class XmlItem { @Schema(name = "prefix_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -409,11 +409,11 @@ public class XmlItem { @Schema(name = "prefix_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -473,7 +473,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -485,15 +485,15 @@ public class XmlItem { @Schema(name = "namespace_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -505,15 +505,15 @@ public class XmlItem { @Valid @Schema(name = "namespace_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -525,15 +525,15 @@ public class XmlItem { @Schema(name = "namespace_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -545,11 +545,11 @@ public class XmlItem { @Schema(name = "namespace_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -609,7 +609,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -621,15 +621,15 @@ public class XmlItem { @Schema(name = "prefix_ns_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -641,15 +641,15 @@ public class XmlItem { @Valid @Schema(name = "prefix_ns_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -661,15 +661,15 @@ public class XmlItem { @Schema(name = "prefix_ns_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -681,11 +681,11 @@ public class XmlItem { @Schema(name = "prefix_ns_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index 8ec23c6cd4a..c5a9840b8fc 100644 --- a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -23,6 +23,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -94,7 +95,7 @@ public interface PetApi { ResponseEntity deletePet( @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId, - @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) String apiKey + @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ); @@ -170,7 +171,7 @@ public interface PetApi { ResponseEntity> findPetsByTags( @NotNull @Parameter(name = "tags", description = "Tags to filter by", required = true, in = ParameterIn.QUERY) @Valid @RequestParam(value = "tags", required = true) List tags, - @Parameter(name = "size", description = "A test HeaderParam for issue #8315 - must NOT be removed when x-spring-paginated:true is used.", in = ParameterIn.HEADER) @RequestHeader(value = "size", required = false) String size, + @Parameter(name = "size", description = "A test HeaderParam for issue #8315 - must NOT be removed when x-spring-paginated:true is used.", in = ParameterIn.HEADER) @RequestHeader(value = "size", required = false) @Nullable String size, @ParameterObject final Pageable pageable ); diff --git a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index 316ab8fe051..2ed02807755 100644 --- a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index 0a0cabb4f51..c9e05bb8b56 100644 --- a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Category.java b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Category.java index 6b951ff15d0..3f4a1d0946c 100644 --- a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Category.java +++ b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Category.java @@ -27,7 +27,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Category { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Category { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java index fa47f8d98c3..62273b74b4c 100644 --- a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Order.java b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Order.java index f5a068284e8..30931ba03e0 100644 --- a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Order.java +++ b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Pet.java b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Pet.java index a46aceac40a..de62b8ecbd3 100644 --- a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Pet.java @@ -92,7 +92,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -104,15 +104,15 @@ public class Pet { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -124,11 +124,11 @@ public class Pet { @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -208,7 +208,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -220,11 +220,11 @@ public class Pet { @Schema(name = "status", description = "pet status in the store", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Tag.java b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Tag.java index 69fd62f84e4..4c6df0f0931 100644 --- a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/User.java b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/User.java index b6206a76796..08a3518b7b4 100644 --- a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/User.java +++ b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java index 77320913723..bea6f9e95c7 100644 --- a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -102,7 +103,7 @@ public interface PetApi { ResponseEntity deletePet( @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId, - @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) String apiKey + @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ); diff --git a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java index 0e2e91b1ec7..b41c0f01cc9 100644 --- a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java index d5f35d3df00..87c146bd44f 100644 --- a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java index 38f132ba454..52ef92b93e2 100644 --- a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java +++ b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java @@ -27,7 +27,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Category { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Category { @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java index fa47f8d98c3..62273b74b4c 100644 --- a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java index f5a068284e8..30931ba03e0 100644 --- a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java +++ b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java index d52989b56c2..ffefbca982c 100644 --- a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java +++ b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java @@ -93,7 +93,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public class Pet { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -125,11 +125,11 @@ public class Pet { @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -209,7 +209,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public class Pet { @Schema(name = "status", description = "pet status in the store", deprecated = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -231,7 +231,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java index 69fd62f84e4..4c6df0f0931 100644 --- a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java +++ b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java index b6206a76796..08a3518b7b4 100644 --- a/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java +++ b/samples/openapi3/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/api/PetApi.java b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/api/PetApi.java index 3474c08ffdb..c858d127be5 100644 --- a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/api/PetApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -102,7 +103,7 @@ public interface PetApi { ResponseEntity deletePet( @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId, - @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) String apiKey + @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) throws Exception; diff --git a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/api/StoreApi.java b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/api/StoreApi.java index cf277bf0c9b..da66c5e9aca 100644 --- a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/api/StoreApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/api/UserApi.java b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/api/UserApi.java index f46b5ebae01..171d3b022d4 100644 --- a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/api/UserApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/Category.java b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/Category.java index 38f132ba454..52ef92b93e2 100644 --- a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/Category.java +++ b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/Category.java @@ -27,7 +27,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Category { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Category { @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/ModelApiResponse.java index fa47f8d98c3..62273b74b4c 100644 --- a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/Order.java b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/Order.java index f5a068284e8..30931ba03e0 100644 --- a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/Order.java +++ b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/Pet.java b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/Pet.java index d52989b56c2..ffefbca982c 100644 --- a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/Pet.java +++ b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/Pet.java @@ -93,7 +93,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public class Pet { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -125,11 +125,11 @@ public class Pet { @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -209,7 +209,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public class Pet { @Schema(name = "status", description = "pet status in the store", deprecated = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -231,7 +231,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/Tag.java b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/Tag.java index 69fd62f84e4..4c6df0f0931 100644 --- a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/Tag.java +++ b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/User.java b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/User.java index b6206a76796..08a3518b7b4 100644 --- a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/User.java +++ b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java index 1cac5d20961..ccd35c830b6 100644 --- a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -123,7 +124,7 @@ public interface PetApi { default ResponseEntity deletePet( @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId, - @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) String apiKey + @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java index 078f70d2199..dd3c3880246 100644 --- a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java index 665098153e7..ab7d5a3be9d 100644 --- a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java index 38f132ba454..52ef92b93e2 100644 --- a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java +++ b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Category.java @@ -27,7 +27,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Category { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Category { @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java index fa47f8d98c3..62273b74b4c 100644 --- a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java index f5a068284e8..30931ba03e0 100644 --- a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java +++ b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java index d52989b56c2..ffefbca982c 100644 --- a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java +++ b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java @@ -93,7 +93,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public class Pet { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -125,11 +125,11 @@ public class Pet { @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -209,7 +209,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public class Pet { @Schema(name = "status", description = "pet status in the store", deprecated = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -231,7 +231,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java index 69fd62f84e4..4c6df0f0931 100644 --- a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java +++ b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java index b6206a76796..08a3518b7b4 100644 --- a/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java +++ b/samples/openapi3/client/petstore/spring-stubs/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/api/BarApi.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/api/BarApi.java index 148f6e9f72b..819a3385278 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/api/BarApi.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/api/BarApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/api/FooApi.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/api/FooApi.java index 72fe36e9ee9..1db60d567c2 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/api/FooApi.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/api/FooApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -67,7 +68,7 @@ public interface FooApi { ) default ResponseEntity createFoo( - @Parameter(name = "Foo", description = "The Foo to be created") @Valid @RequestBody(required = false) Foo foo + @Parameter(name = "Foo", description = "The Foo to be created") @Valid @RequestBody(required = false) @Nullable Foo foo ) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Addressable.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Addressable.java index cd48b81170d..07588019f2e 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Addressable.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Addressable.java @@ -27,7 +27,7 @@ public class Addressable { private @Nullable String id; - public Addressable href(String href) { + public Addressable href(@Nullable String href) { this.href = href; return this; } @@ -39,15 +39,15 @@ public class Addressable { @Schema(name = "href", description = "Hyperlink reference", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("href") - public String getHref() { + public @Nullable String getHref() { return href; } - public void setHref(String href) { + public void setHref(@Nullable String href) { this.href = href; } - public Addressable id(String id) { + public Addressable id(@Nullable String id) { this.id = id; return this; } @@ -59,11 +59,11 @@ public class Addressable { @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public String getId() { + public @Nullable String getId() { return id; } - public void setId(String id) { + public void setId(@Nullable String id) { this.id = id; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Bar.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Bar.java index 9d92962d04d..0ff1563ed40 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Bar.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Bar.java @@ -68,7 +68,7 @@ public class Bar extends Entity implements BarRefOrValue { this.id = id; } - public Bar barPropA(String barPropA) { + public Bar barPropA(@Nullable String barPropA) { this.barPropA = barPropA; return this; } @@ -80,15 +80,15 @@ public class Bar extends Entity implements BarRefOrValue { @Schema(name = "barPropA", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("barPropA") - public String getBarPropA() { + public @Nullable String getBarPropA() { return barPropA; } - public void setBarPropA(String barPropA) { + public void setBarPropA(@Nullable String barPropA) { this.barPropA = barPropA; } - public Bar fooPropB(String fooPropB) { + public Bar fooPropB(@Nullable String fooPropB) { this.fooPropB = fooPropB; return this; } @@ -100,15 +100,15 @@ public class Bar extends Entity implements BarRefOrValue { @Schema(name = "fooPropB", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("fooPropB") - public String getFooPropB() { + public @Nullable String getFooPropB() { return fooPropB; } - public void setFooPropB(String fooPropB) { + public void setFooPropB(@Nullable String fooPropB) { this.fooPropB = fooPropB; } - public Bar foo(FooRefOrValue foo) { + public Bar foo(@Nullable FooRefOrValue foo) { this.foo = foo; return this; } @@ -120,11 +120,11 @@ public class Bar extends Entity implements BarRefOrValue { @Valid @Schema(name = "foo", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("foo") - public FooRefOrValue getFoo() { + public @Nullable FooRefOrValue getFoo() { return foo; } - public void setFoo(FooRefOrValue foo) { + public void setFoo(@Nullable FooRefOrValue foo) { this.foo = foo; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/BarCreate.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/BarCreate.java index 271087b5019..6d063b2e099 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/BarCreate.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/BarCreate.java @@ -47,7 +47,7 @@ public class BarCreate extends Entity { super(atType); } - public BarCreate barPropA(String barPropA) { + public BarCreate barPropA(@Nullable String barPropA) { this.barPropA = barPropA; return this; } @@ -59,15 +59,15 @@ public class BarCreate extends Entity { @Schema(name = "barPropA", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("barPropA") - public String getBarPropA() { + public @Nullable String getBarPropA() { return barPropA; } - public void setBarPropA(String barPropA) { + public void setBarPropA(@Nullable String barPropA) { this.barPropA = barPropA; } - public BarCreate fooPropB(String fooPropB) { + public BarCreate fooPropB(@Nullable String fooPropB) { this.fooPropB = fooPropB; return this; } @@ -79,15 +79,15 @@ public class BarCreate extends Entity { @Schema(name = "fooPropB", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("fooPropB") - public String getFooPropB() { + public @Nullable String getFooPropB() { return fooPropB; } - public void setFooPropB(String fooPropB) { + public void setFooPropB(@Nullable String fooPropB) { this.fooPropB = fooPropB; } - public BarCreate foo(FooRefOrValue foo) { + public BarCreate foo(@Nullable FooRefOrValue foo) { this.foo = foo; return this; } @@ -99,11 +99,11 @@ public class BarCreate extends Entity { @Valid @Schema(name = "foo", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("foo") - public FooRefOrValue getFoo() { + public @Nullable FooRefOrValue getFoo() { return foo; } - public void setFoo(FooRefOrValue foo) { + public void setFoo(@Nullable FooRefOrValue foo) { this.foo = foo; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Entity.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Entity.java index 2d97016c055..82f2ca67d02 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Entity.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Entity.java @@ -60,7 +60,7 @@ public class Entity { this.atType = atType; } - public Entity href(String href) { + public Entity href(@Nullable String href) { this.href = href; return this; } @@ -72,15 +72,15 @@ public class Entity { @Schema(name = "href", description = "Hyperlink reference", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("href") - public String getHref() { + public @Nullable String getHref() { return href; } - public void setHref(String href) { + public void setHref(@Nullable String href) { this.href = href; } - public Entity id(String id) { + public Entity id(@Nullable String id) { this.id = id; return this; } @@ -92,15 +92,15 @@ public class Entity { @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public String getId() { + public @Nullable String getId() { return id; } - public void setId(String id) { + public void setId(@Nullable String id) { this.id = id; } - public Entity atSchemaLocation(String atSchemaLocation) { + public Entity atSchemaLocation(@Nullable String atSchemaLocation) { this.atSchemaLocation = atSchemaLocation; return this; } @@ -112,15 +112,15 @@ public class Entity { @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("@schemaLocation") - public String getAtSchemaLocation() { + public @Nullable String getAtSchemaLocation() { return atSchemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { + public void setAtSchemaLocation(@Nullable String atSchemaLocation) { this.atSchemaLocation = atSchemaLocation; } - public Entity atBaseType(String atBaseType) { + public Entity atBaseType(@Nullable String atBaseType) { this.atBaseType = atBaseType; return this; } @@ -132,11 +132,11 @@ public class Entity { @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("@baseType") - public String getAtBaseType() { + public @Nullable String getAtBaseType() { return atBaseType; } - public void setAtBaseType(String atBaseType) { + public void setAtBaseType(@Nullable String atBaseType) { this.atBaseType = atBaseType; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/EntityRef.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/EntityRef.java index ec239a602eb..a96b15ec08b 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/EntityRef.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/EntityRef.java @@ -61,7 +61,7 @@ public class EntityRef { this.atType = atType; } - public EntityRef name(String name) { + public EntityRef name(@Nullable String name) { this.name = name; return this; } @@ -73,15 +73,15 @@ public class EntityRef { @Schema(name = "name", description = "Name of the related entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } - public EntityRef atReferredType(String atReferredType) { + public EntityRef atReferredType(@Nullable String atReferredType) { this.atReferredType = atReferredType; return this; } @@ -93,15 +93,15 @@ public class EntityRef { @Schema(name = "@referredType", description = "The actual type of the target instance when needed for disambiguation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("@referredType") - public String getAtReferredType() { + public @Nullable String getAtReferredType() { return atReferredType; } - public void setAtReferredType(String atReferredType) { + public void setAtReferredType(@Nullable String atReferredType) { this.atReferredType = atReferredType; } - public EntityRef href(String href) { + public EntityRef href(@Nullable String href) { this.href = href; return this; } @@ -113,15 +113,15 @@ public class EntityRef { @Schema(name = "href", description = "Hyperlink reference", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("href") - public String getHref() { + public @Nullable String getHref() { return href; } - public void setHref(String href) { + public void setHref(@Nullable String href) { this.href = href; } - public EntityRef id(String id) { + public EntityRef id(@Nullable String id) { this.id = id; return this; } @@ -133,15 +133,15 @@ public class EntityRef { @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public String getId() { + public @Nullable String getId() { return id; } - public void setId(String id) { + public void setId(@Nullable String id) { this.id = id; } - public EntityRef atSchemaLocation(String atSchemaLocation) { + public EntityRef atSchemaLocation(@Nullable String atSchemaLocation) { this.atSchemaLocation = atSchemaLocation; return this; } @@ -153,15 +153,15 @@ public class EntityRef { @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("@schemaLocation") - public String getAtSchemaLocation() { + public @Nullable String getAtSchemaLocation() { return atSchemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { + public void setAtSchemaLocation(@Nullable String atSchemaLocation) { this.atSchemaLocation = atSchemaLocation; } - public EntityRef atBaseType(String atBaseType) { + public EntityRef atBaseType(@Nullable String atBaseType) { this.atBaseType = atBaseType; return this; } @@ -173,11 +173,11 @@ public class EntityRef { @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("@baseType") - public String getAtBaseType() { + public @Nullable String getAtBaseType() { return atBaseType; } - public void setAtBaseType(String atBaseType) { + public void setAtBaseType(@Nullable String atBaseType) { this.atBaseType = atBaseType; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Extensible.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Extensible.java index e28481a43d2..675f92b97f8 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Extensible.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Extensible.java @@ -39,7 +39,7 @@ public class Extensible { this.atType = atType; } - public Extensible atSchemaLocation(String atSchemaLocation) { + public Extensible atSchemaLocation(@Nullable String atSchemaLocation) { this.atSchemaLocation = atSchemaLocation; return this; } @@ -51,15 +51,15 @@ public class Extensible { @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("@schemaLocation") - public String getAtSchemaLocation() { + public @Nullable String getAtSchemaLocation() { return atSchemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { + public void setAtSchemaLocation(@Nullable String atSchemaLocation) { this.atSchemaLocation = atSchemaLocation; } - public Extensible atBaseType(String atBaseType) { + public Extensible atBaseType(@Nullable String atBaseType) { this.atBaseType = atBaseType; return this; } @@ -71,11 +71,11 @@ public class Extensible { @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("@baseType") - public String getAtBaseType() { + public @Nullable String getAtBaseType() { return atBaseType; } - public void setAtBaseType(String atBaseType) { + public void setAtBaseType(@Nullable String atBaseType) { this.atBaseType = atBaseType; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Foo.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Foo.java index 37e37d32156..c6af6088686 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Foo.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Foo.java @@ -42,7 +42,7 @@ public class Foo extends Entity implements FooRefOrValue { super(atType); } - public Foo fooPropA(String fooPropA) { + public Foo fooPropA(@Nullable String fooPropA) { this.fooPropA = fooPropA; return this; } @@ -54,15 +54,15 @@ public class Foo extends Entity implements FooRefOrValue { @Schema(name = "fooPropA", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("fooPropA") - public String getFooPropA() { + public @Nullable String getFooPropA() { return fooPropA; } - public void setFooPropA(String fooPropA) { + public void setFooPropA(@Nullable String fooPropA) { this.fooPropA = fooPropA; } - public Foo fooPropB(String fooPropB) { + public Foo fooPropB(@Nullable String fooPropB) { this.fooPropB = fooPropB; return this; } @@ -74,11 +74,11 @@ public class Foo extends Entity implements FooRefOrValue { @Schema(name = "fooPropB", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("fooPropB") - public String getFooPropB() { + public @Nullable String getFooPropB() { return fooPropB; } - public void setFooPropB(String fooPropB) { + public void setFooPropB(@Nullable String fooPropB) { this.fooPropB = fooPropB; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/FooRef.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/FooRef.java index b437faf3ce5..e3cd06e7317 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/FooRef.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/FooRef.java @@ -40,7 +40,7 @@ public class FooRef extends EntityRef implements FooRefOrValue { super(atType); } - public FooRef foorefPropA(String foorefPropA) { + public FooRef foorefPropA(@Nullable String foorefPropA) { this.foorefPropA = foorefPropA; return this; } @@ -52,11 +52,11 @@ public class FooRef extends EntityRef implements FooRefOrValue { @Schema(name = "foorefPropA", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("foorefPropA") - public String getFoorefPropA() { + public @Nullable String getFoorefPropA() { return foorefPropA; } - public void setFoorefPropA(String foorefPropA) { + public void setFoorefPropA(@Nullable String foorefPropA) { this.foorefPropA = foorefPropA; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Pasta.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Pasta.java index 5df3344b463..ec61b2cab8c 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Pasta.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Pasta.java @@ -40,7 +40,7 @@ public class Pasta extends Entity { super(atType); } - public Pasta vendor(String vendor) { + public Pasta vendor(@Nullable String vendor) { this.vendor = vendor; return this; } @@ -52,11 +52,11 @@ public class Pasta extends Entity { @Schema(name = "vendor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("vendor") - public String getVendor() { + public @Nullable String getVendor() { return vendor; } - public void setVendor(String vendor) { + public void setVendor(@Nullable String vendor) { this.vendor = vendor; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Pizza.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Pizza.java index ae8c7ff7c50..10dcbb50efd 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Pizza.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Pizza.java @@ -49,7 +49,7 @@ public class Pizza extends Entity { super(atType); } - public Pizza pizzaSize(BigDecimal pizzaSize) { + public Pizza pizzaSize(@Nullable BigDecimal pizzaSize) { this.pizzaSize = pizzaSize; return this; } @@ -61,11 +61,11 @@ public class Pizza extends Entity { @Valid @Schema(name = "pizzaSize", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("pizzaSize") - public BigDecimal getPizzaSize() { + public @Nullable BigDecimal getPizzaSize() { return pizzaSize; } - public void setPizzaSize(BigDecimal pizzaSize) { + public void setPizzaSize(@Nullable BigDecimal pizzaSize) { this.pizzaSize = pizzaSize; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/PizzaSpeziale.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/PizzaSpeziale.java index 4b6874f5056..8d1bceeb30d 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/PizzaSpeziale.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/PizzaSpeziale.java @@ -41,7 +41,7 @@ public class PizzaSpeziale extends Pizza { super(atType); } - public PizzaSpeziale toppings(String toppings) { + public PizzaSpeziale toppings(@Nullable String toppings) { this.toppings = toppings; return this; } @@ -53,11 +53,11 @@ public class PizzaSpeziale extends Pizza { @Schema(name = "toppings", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("toppings") - public String getToppings() { + public @Nullable String getToppings() { return toppings; } - public void setToppings(String toppings) { + public void setToppings(@Nullable String toppings) { this.toppings = toppings; } diff --git a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/api/PetApi.java b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/api/PetApi.java index c3ccf8c0a18..6a78164f7cc 100644 --- a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/api/PetApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -123,7 +124,7 @@ public interface PetApi { default ResponseEntity deletePet( @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId, - @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) String apiKey + @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/api/StoreApi.java b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/api/StoreApi.java index 501c1fc923b..e674b3c7748 100644 --- a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/api/StoreApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/api/UserApi.java b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/api/UserApi.java index fd15a8b2557..b9eb373eabc 100644 --- a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/api/UserApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/Category.java b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/Category.java index 38f132ba454..52ef92b93e2 100644 --- a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/Category.java +++ b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/Category.java @@ -27,7 +27,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Category { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Category { @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/ModelApiResponse.java index fa47f8d98c3..62273b74b4c 100644 --- a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/Order.java b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/Order.java index f5a068284e8..30931ba03e0 100644 --- a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/Order.java +++ b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/Pet.java b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/Pet.java index d52989b56c2..ffefbca982c 100644 --- a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/Pet.java +++ b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/Pet.java @@ -93,7 +93,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public class Pet { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -125,11 +125,11 @@ public class Pet { @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -209,7 +209,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public class Pet { @Schema(name = "status", description = "pet status in the store", deprecated = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -231,7 +231,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/Tag.java b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/Tag.java index 69fd62f84e4..4c6df0f0931 100644 --- a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/Tag.java +++ b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/User.java b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/User.java index b6206a76796..08a3518b7b4 100644 --- a/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/User.java +++ b/samples/openapi3/server/petstore/spring-boot-springdoc/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/api/PetApi.java b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/api/PetApi.java index aa5db0bd4ff..8c9fe11ab7a 100644 --- a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/api/PetApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -123,7 +124,7 @@ public interface PetApi { default ResponseEntity deletePet( @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId, - @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) String apiKey + @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/api/StoreApi.java b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/api/StoreApi.java index 7ce733c17b3..11fcda03f0e 100644 --- a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/api/StoreApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/api/UserApi.java b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/api/UserApi.java index 550503a4730..4f0f4eb1fc1 100644 --- a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/api/UserApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Category.java b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Category.java index 3e362e45689..b5cd779e48e 100644 --- a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Category.java +++ b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Category.java @@ -46,7 +46,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -60,15 +60,15 @@ public class Category { @JsonProperty("id") @JacksonXmlProperty(localName = "id") @XmlElement(name = "id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -82,11 +82,11 @@ public class Category { @JsonProperty("name") @JacksonXmlProperty(localName = "name") @XmlElement(name = "name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/ModelApiResponse.java index de3a986808f..06c2973301d 100644 --- a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -51,7 +51,7 @@ public class ModelApiResponse { this.message = message; } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -65,15 +65,15 @@ public class ModelApiResponse { @JsonProperty("code") @JacksonXmlProperty(localName = "code") @XmlElement(name = "code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -87,15 +87,15 @@ public class ModelApiResponse { @JsonProperty("type") @JacksonXmlProperty(localName = "type") @XmlElement(name = "type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -109,11 +109,11 @@ public class ModelApiResponse { @JsonProperty("message") @JacksonXmlProperty(localName = "message") @XmlElement(name = "message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Order.java b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Order.java index 1e974769a96..745b51a4411 100644 --- a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Order.java +++ b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Order.java @@ -99,7 +99,7 @@ public class Order { this.complete = complete; } - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -113,15 +113,15 @@ public class Order { @JsonProperty("id") @JacksonXmlProperty(localName = "id") @XmlElement(name = "id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -135,15 +135,15 @@ public class Order { @JsonProperty("petId") @JacksonXmlProperty(localName = "petId") @XmlElement(name = "petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -157,15 +157,15 @@ public class Order { @JsonProperty("quantity") @JacksonXmlProperty(localName = "quantity") @XmlElement(name = "quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -179,15 +179,15 @@ public class Order { @JsonProperty("shipDate") @JacksonXmlProperty(localName = "shipDate") @XmlElement(name = "shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -201,11 +201,11 @@ public class Order { @JsonProperty("status") @JacksonXmlProperty(localName = "status") @XmlElement(name = "status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Pet.java b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Pet.java index f2946a4dec3..68daabddd06 100644 --- a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Pet.java +++ b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Pet.java @@ -112,7 +112,7 @@ public class Pet { this.status = status; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -126,15 +126,15 @@ public class Pet { @JsonProperty("id") @JacksonXmlProperty(localName = "id") @XmlElement(name = "id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -148,11 +148,11 @@ public class Pet { @JsonProperty("category") @JacksonXmlProperty(localName = "Category") @XmlElement(name = "Category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -242,7 +242,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -258,7 +258,7 @@ public class Pet { @JacksonXmlProperty(localName = "status") @XmlElement(name = "status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -266,7 +266,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Tag.java b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Tag.java index 8ce4177e255..cca10eb0c20 100644 --- a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Tag.java +++ b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Tag.java @@ -46,7 +46,7 @@ public class Tag { this.name = name; } - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -60,15 +60,15 @@ public class Tag { @JsonProperty("id") @JacksonXmlProperty(localName = "id") @XmlElement(name = "id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -82,11 +82,11 @@ public class Tag { @JsonProperty("name") @JacksonXmlProperty(localName = "name") @XmlElement(name = "name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/User.java b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/User.java index 585f4fab0ee..6985b7a4d82 100644 --- a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/User.java +++ b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/User.java @@ -64,7 +64,7 @@ public class User { this.userStatus = userStatus; } - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -78,15 +78,15 @@ public class User { @JsonProperty("id") @JacksonXmlProperty(localName = "id") @XmlElement(name = "id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -100,15 +100,15 @@ public class User { @JsonProperty("username") @JacksonXmlProperty(localName = "username") @XmlElement(name = "username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -122,15 +122,15 @@ public class User { @JsonProperty("firstName") @JacksonXmlProperty(localName = "firstName") @XmlElement(name = "firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -144,15 +144,15 @@ public class User { @JsonProperty("lastName") @JacksonXmlProperty(localName = "lastName") @XmlElement(name = "lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -166,15 +166,15 @@ public class User { @JsonProperty("email") @JacksonXmlProperty(localName = "email") @XmlElement(name = "email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -188,15 +188,15 @@ public class User { @JsonProperty("password") @JacksonXmlProperty(localName = "password") @XmlElement(name = "password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -210,15 +210,15 @@ public class User { @JsonProperty("phone") @JacksonXmlProperty(localName = "phone") @XmlElement(name = "phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -232,11 +232,11 @@ public class User { @JsonProperty("userStatus") @JacksonXmlProperty(localName = "userStatus") @XmlElement(name = "userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java index 224e6aa6756..c3292eca497 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -18,6 +18,7 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java index b082ac0b8d4..32ce81eef4d 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java @@ -4,6 +4,7 @@ import org.openapitools.model.Client; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java index abd72146363..9a7b5f5aafd 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java @@ -30,6 +30,7 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -104,7 +105,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterBooleanSerialize( - @Parameter(name = "body", description = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body + @Parameter(name = "body", description = "Input boolean as post body") @Valid @RequestBody(required = false) @Nullable Boolean body ) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -135,7 +136,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterCompositeSerialize( - @Parameter(name = "OuterComposite", description = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite outerComposite + @Parameter(name = "OuterComposite", description = "Input composite as post body") @Valid @RequestBody(required = false) @Nullable OuterComposite outerComposite ) { return getDelegate().fakeOuterCompositeSerialize(outerComposite); } @@ -166,7 +167,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterNumberSerialize( - @Parameter(name = "body", description = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body + @Parameter(name = "body", description = "Input number as post body") @Valid @RequestBody(required = false) @Nullable BigDecimal body ) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -197,7 +198,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterStringSerialize( - @Parameter(name = "body", description = "Input string as post body") @Valid @RequestBody(required = false) String body + @Parameter(name = "body", description = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body ) { return getDelegate().fakeOuterStringSerialize(body); } @@ -411,12 +412,12 @@ public interface FakeApi { ) default ResponseEntity testEnumParameters( - @Parameter(name = "enum_header_string_array", description = "Header parameter enum test (string array)", in = ParameterIn.HEADER) @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @Parameter(name = "enum_header_string_array", description = "Header parameter enum test (string array)", in = ParameterIn.HEADER) @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @Parameter(name = "enum_header_string", description = "Header parameter enum test (string)", in = ParameterIn.HEADER) @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @Parameter(name = "enum_query_string_array", description = "Query parameter enum test (string array)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @Parameter(name = "enum_query_string_array", description = "Query parameter enum test (string array)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @Parameter(name = "enum_query_string", description = "Query parameter enum test (string)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @Parameter(name = "enum_query_integer", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @Parameter(name = "enum_query_double", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @Parameter(name = "enum_query_integer", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @Parameter(name = "enum_query_double", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @Parameter(name = "enum_form_string_array", description = "Form parameter enum test (string array)") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @Parameter(name = "enum_form_string", description = "Form parameter enum test (string)") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString ) { @@ -454,9 +455,9 @@ public interface FakeApi { @NotNull @Parameter(name = "required_string_group", description = "Required String in group parameters", required = true, in = ParameterIn.QUERY) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @Parameter(name = "required_boolean_group", description = "Required Boolean in group parameters", required = true, in = ParameterIn.HEADER) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @NotNull @Parameter(name = "required_int64_group", description = "Required Integer in group parameters", required = true, in = ParameterIn.QUERY) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @Parameter(name = "string_group", description = "String in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @Parameter(name = "boolean_group", description = "Boolean in group parameters", in = ParameterIn.HEADER) @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @Parameter(name = "int64_group", description = "Integer in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + @Parameter(name = "string_group", description = "String in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @Parameter(name = "boolean_group", description = "Boolean in group parameters", in = ParameterIn.HEADER) @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @Parameter(name = "int64_group", description = "Integer in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java index 5b89daf88ca..32ead027eec 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -16,6 +16,7 @@ import org.openapitools.model.XmlItem; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 7659bf16c75..df3d698be9a 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -18,6 +18,7 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java index 22dd9512aac..5a1b775fcaf 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java @@ -4,6 +4,7 @@ import org.openapitools.model.Client; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java index 846d8ebe21b..7c2ab1c8e4c 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java @@ -20,6 +20,7 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -103,7 +104,7 @@ public interface PetApi { default ResponseEntity deletePet( @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId, - @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) String apiKey + @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return getDelegate().deletePet(petId, apiKey); } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApiDelegate.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApiDelegate.java index 451bf4bad63..71080a04d77 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApiDelegate.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApiDelegate.java @@ -6,6 +6,7 @@ import java.util.Set; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java index b257451690c..fd691863941 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java @@ -19,6 +19,7 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApiDelegate.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApiDelegate.java index 014f9eec9ab..00289908529 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApiDelegate.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApiDelegate.java @@ -5,6 +5,7 @@ import org.openapitools.model.Order; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java index 964d601d42d..1dbb555c7ff 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java @@ -19,6 +19,7 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApiDelegate.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApiDelegate.java index 8a8222c1332..56c0b57370b 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApiDelegate.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApiDelegate.java @@ -5,6 +5,7 @@ import org.openapitools.model.User; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 830bbb7313d..96f67600df9 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesAnyType { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index bf1595a96f9..c1667ca6104 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesArray { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 52fffbdf38a..76db03e378c 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesBoolean { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index d4c05a241d5..63327058ed2 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -283,7 +283,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -295,11 +295,11 @@ public class AdditionalPropertiesClass { @Schema(name = "anytype_1", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } @@ -323,7 +323,7 @@ public class AdditionalPropertiesClass { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -335,11 +335,11 @@ public class AdditionalPropertiesClass { @Schema(name = "anytype_3", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 72ab9cbaf32..71832b3934a 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesInteger { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 5c61bb980aa..54c84c7a299 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesNumber { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index c5b9a7c551f..5aad3f623d8 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesObject { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 69ba6448e25..15aa4bd856d 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesString { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java index 1917ef14601..91ab33a1af7 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java @@ -80,7 +80,7 @@ public class BigCat extends Cat { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -92,11 +92,11 @@ public class BigCat extends Cat { @Schema(name = "kind", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java index 5068cf5192b..8061352c68f 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java @@ -34,7 +34,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -46,15 +46,15 @@ public class Capitalization { @Schema(name = "smallCamel", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -66,15 +66,15 @@ public class Capitalization { @Schema(name = "CapitalCamel", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -86,15 +86,15 @@ public class Capitalization { @Schema(name = "small_Snake", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -106,15 +106,15 @@ public class Capitalization { @Schema(name = "Capital_Snake", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -126,15 +126,15 @@ public class Capitalization { @Schema(name = "SCA_ETH_Flow_Points", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -146,11 +146,11 @@ public class Capitalization { @Schema(name = "ATT_NAME", description = "Name of the pet ", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java index ff52a5fb632..ae1ff30ca9a 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java @@ -48,7 +48,7 @@ public class Cat extends Animal { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -60,11 +60,11 @@ public class Cat extends Animal { @Schema(name = "declawed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java index 370ea62adc9..41860723735 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java @@ -37,7 +37,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -49,11 +49,11 @@ public class Category { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ChildWithNullable.java index 61fadeb20ae..08d29fd9d1c 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -32,7 +32,7 @@ public class ChildWithNullable extends ParentWithNullable { private @Nullable String otherProperty; - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -44,11 +44,11 @@ public class ChildWithNullable extends ParentWithNullable { @Schema(name = "otherProperty", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java index b488d65a4d9..c8d79f06b3c 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java @@ -25,7 +25,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -37,11 +37,11 @@ public class ClassModel { @Schema(name = "_class", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java index 2ac879d2247..93e6e610961 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java @@ -24,7 +24,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -36,11 +36,11 @@ public class Client { @Schema(name = "client", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java index 483252825a5..105f4e5cfd6 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java @@ -40,7 +40,7 @@ public class Dog extends Animal { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -52,11 +52,11 @@ public class Dog extends Animal { @Schema(name = "breed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java index 18661a6b527..3eb15047d97 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java @@ -101,7 +101,7 @@ public class EnumArrays { @Valid private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -113,11 +113,11 @@ public class EnumArrays { @Schema(name = "just_symbol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java index 9b1b15ea441..15185c08d97 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java @@ -191,7 +191,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -203,11 +203,11 @@ public class EnumTest { @Schema(name = "enum_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -231,7 +231,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -243,15 +243,15 @@ public class EnumTest { @Schema(name = "enum_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -263,15 +263,15 @@ public class EnumTest { @Schema(name = "enum_number", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -283,11 +283,11 @@ public class EnumTest { @Valid @Schema(name = "outerEnum", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/File.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/File.java index d1c656bf869..eaeb1a5deeb 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/File.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/File.java @@ -25,7 +25,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -37,11 +37,11 @@ public class File { @Schema(name = "sourceURI", description = "Test capitalization", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java index d620fcb5c5b..f2ab210d147 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -31,7 +31,7 @@ public class FileSchemaTestClass { @Valid private List<@Valid File> files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -43,11 +43,11 @@ public class FileSchemaTestClass { @Valid @Schema(name = "file", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java index efe9b15cbe3..1634cef9789 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java @@ -74,7 +74,7 @@ public class FormatTest { this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -88,15 +88,15 @@ public class FormatTest { @Min(10) @Max(100) @Schema(name = "integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -110,15 +110,15 @@ public class FormatTest { @Min(20) @Max(200) @Schema(name = "int32", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -130,11 +130,11 @@ public class FormatTest { @Schema(name = "int64", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -160,7 +160,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -174,15 +174,15 @@ public class FormatTest { @DecimalMin("54.3") @DecimalMax("987.6") @Schema(name = "float", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -196,15 +196,15 @@ public class FormatTest { @DecimalMin("67.8") @DecimalMax("123.4") @Schema(name = "double", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -216,11 +216,11 @@ public class FormatTest { @Pattern(regexp = "/[a-z]/i") @Schema(name = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -244,7 +244,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -256,11 +256,11 @@ public class FormatTest { @Valid @Schema(name = "binary", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -284,7 +284,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -296,15 +296,15 @@ public class FormatTest { @Valid @Schema(name = "dateTime", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -316,11 +316,11 @@ public class FormatTest { @Valid @Schema(name = "uuid", example = "72f98069-206d-4f12-9f12-3d1e525a8e84", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -344,7 +344,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -356,11 +356,11 @@ public class FormatTest { @Valid @Schema(name = "BigDecimal", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 81f356e7131..eba1d75a4cb 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -28,7 +28,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -40,15 +40,15 @@ public class HasOnlyReadOnly { @Schema(name = "bar", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -60,11 +60,11 @@ public class HasOnlyReadOnly { @Schema(name = "foo", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index e59884edcbf..240b93433ef 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -36,7 +36,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -48,15 +48,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @Schema(name = "uuid", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -68,11 +68,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @Schema(name = "dateTime", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java index adb553d7128..9b2e9c3fdd0 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java @@ -29,7 +29,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -41,15 +41,15 @@ public class Model200Response { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -61,11 +61,11 @@ public class Model200Response { @Schema(name = "class", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java index 159c9942618..53239483e97 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -30,7 +30,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -42,15 +42,15 @@ public class ModelApiResponse { @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -62,15 +62,15 @@ public class ModelApiResponse { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -82,11 +82,11 @@ public class ModelApiResponse { @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelList.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelList.java index a1eb773676b..9ccf8e4b5bc 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelList.java @@ -26,7 +26,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -38,11 +38,11 @@ public class ModelList { @Schema(name = "123-list", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java index aad5cf1a29d..3ebc70736ad 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java @@ -27,7 +27,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -39,11 +39,11 @@ public class ModelReturn { @Schema(name = "return", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java index 060f4e82501..ec2d7c5927e 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java @@ -62,7 +62,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -74,15 +74,15 @@ public class Name { @Schema(name = "snake_case", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -94,15 +94,15 @@ public class Name { @Schema(name = "property", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -114,11 +114,11 @@ public class Name { @Schema(name = "123Number", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java index c8af44357a8..4cee785c4fa 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java @@ -25,7 +25,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -37,11 +37,11 @@ public class NumberOnly { @Valid @Schema(name = "JustNumber", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java index f0cf689c356..76c1be4fdbb 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java @@ -75,7 +75,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -87,15 +87,15 @@ public class Order { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -107,15 +107,15 @@ public class Order { @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -127,15 +127,15 @@ public class Order { @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -147,15 +147,15 @@ public class Order { @Valid @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -167,11 +167,11 @@ public class Order { @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java index badf9bcd012..e8c016b7d3b 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java @@ -29,7 +29,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -41,15 +41,15 @@ public class OuterComposite { @Valid @Schema(name = "my_number", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -61,15 +61,15 @@ public class OuterComposite { @Schema(name = "my_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -81,11 +81,11 @@ public class OuterComposite { @Schema(name = "my_boolean", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ParentWithNullable.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ParentWithNullable.java index 759ce2361a1..26d56f6dc36 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ParentWithNullable.java @@ -75,7 +75,7 @@ public class ParentWithNullable { private JsonNullable nullableProperty = JsonNullable.undefined(); - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -87,11 +87,11 @@ public class ParentWithNullable { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java index 564926c9b34..4774dbbdaca 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java @@ -95,7 +95,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -107,15 +107,15 @@ public class Pet { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -127,11 +127,11 @@ public class Pet { @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -212,7 +212,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -226,7 +226,7 @@ public class Pet { @Schema(name = "status", description = "pet status in the store", deprecated = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -234,7 +234,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java index fb39cd3b9b4..8b1e50c5baf 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -26,7 +26,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -38,15 +38,15 @@ public class ReadOnlyFirst { @Schema(name = "bar", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -58,11 +58,11 @@ public class ReadOnlyFirst { @Schema(name = "baz", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java index fd046d7fe6b..943e77a3676 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java @@ -30,7 +30,7 @@ public class ResponseObjectWithDifferentFieldNames { private @Nullable String propertyNameWithSpaces; - public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNames normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -42,15 +42,15 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "normalPropertyName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -62,15 +62,15 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "UPPER_CASE_PROPERTY_SNAKE", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -82,15 +82,15 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "lower-case-property-dashes", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -102,11 +102,11 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "property name with spaces", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java index 342d0437dec..68bce8ca908 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java @@ -26,7 +26,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -38,11 +38,11 @@ public class SpecialModelName { @Schema(name = "$special[property.name]", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java index f7dd6a14494..e8b67439e58 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java @@ -26,7 +26,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -38,15 +38,15 @@ public class Tag { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -58,11 +58,11 @@ public class Tag { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java index 98c76f55ce9..a56fd230247 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java @@ -38,7 +38,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -50,15 +50,15 @@ public class User { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -70,15 +70,15 @@ public class User { @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -90,15 +90,15 @@ public class User { @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -110,15 +110,15 @@ public class User { @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -130,15 +130,15 @@ public class User { @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -150,15 +150,15 @@ public class User { @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -170,15 +170,15 @@ public class User { @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -190,11 +190,11 @@ public class User { @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java index 8fb1a3ebcdf..f4292bd33da 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java @@ -93,7 +93,7 @@ public class XmlItem { @Valid private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -105,15 +105,15 @@ public class XmlItem { @Schema(name = "attribute_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -125,15 +125,15 @@ public class XmlItem { @Valid @Schema(name = "attribute_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -145,15 +145,15 @@ public class XmlItem { @Schema(name = "attribute_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -165,11 +165,11 @@ public class XmlItem { @Schema(name = "attribute_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -201,7 +201,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -213,15 +213,15 @@ public class XmlItem { @Schema(name = "name_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -233,15 +233,15 @@ public class XmlItem { @Valid @Schema(name = "name_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -253,15 +253,15 @@ public class XmlItem { @Schema(name = "name_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -273,11 +273,11 @@ public class XmlItem { @Schema(name = "name_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -337,7 +337,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -349,15 +349,15 @@ public class XmlItem { @Schema(name = "prefix_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -369,15 +369,15 @@ public class XmlItem { @Valid @Schema(name = "prefix_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -389,15 +389,15 @@ public class XmlItem { @Schema(name = "prefix_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -409,11 +409,11 @@ public class XmlItem { @Schema(name = "prefix_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -473,7 +473,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -485,15 +485,15 @@ public class XmlItem { @Schema(name = "namespace_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -505,15 +505,15 @@ public class XmlItem { @Valid @Schema(name = "namespace_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -525,15 +525,15 @@ public class XmlItem { @Schema(name = "namespace_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -545,11 +545,11 @@ public class XmlItem { @Schema(name = "namespace_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -609,7 +609,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -621,15 +621,15 @@ public class XmlItem { @Schema(name = "prefix_ns_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -641,15 +641,15 @@ public class XmlItem { @Valid @Schema(name = "prefix_ns_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -661,15 +661,15 @@ public class XmlItem { @Schema(name = "prefix_ns_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -681,11 +681,11 @@ public class XmlItem { @Schema(name = "prefix_ns_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java index ed357fa298a..1db778d1de9 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -20,6 +20,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java index d3c11e319d5..c1208b13992 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java @@ -32,6 +32,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -109,7 +110,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterBooleanSerialize( - @Parameter(name = "body", description = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body + @Parameter(name = "body", description = "Input boolean as post body") @Valid @RequestBody(required = false) @Nullable Boolean body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -141,7 +142,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterCompositeSerialize( - @Parameter(name = "OuterComposite", description = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite outerComposite + @Parameter(name = "OuterComposite", description = "Input composite as post body") @Valid @RequestBody(required = false) @Nullable OuterComposite outerComposite ) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -182,7 +183,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterNumberSerialize( - @Parameter(name = "body", description = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body + @Parameter(name = "body", description = "Input number as post body") @Valid @RequestBody(required = false) @Nullable BigDecimal body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -214,7 +215,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterStringSerialize( - @Parameter(name = "body", description = "Input string as post body") @Valid @RequestBody(required = false) String body + @Parameter(name = "body", description = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -454,10 +455,10 @@ public interface FakeApi { ) default ResponseEntity testEnumParameters( - @Parameter(name = "enum_query_string_array", description = "Query parameter enum test (string array)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @Parameter(name = "enum_query_string_array", description = "Query parameter enum test (string array)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @Parameter(name = "enum_query_string", description = "Query parameter enum test (string)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @Parameter(name = "enum_query_integer", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @Parameter(name = "enum_query_double", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @Parameter(name = "enum_query_integer", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @Parameter(name = "enum_query_double", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @Parameter(name = "enum_form_string_array", description = "Form parameter enum test (string array)") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @Parameter(name = "enum_form_string", description = "Form parameter enum test (string)") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString ) { @@ -497,8 +498,8 @@ public interface FakeApi { default ResponseEntity testGroupParameters( @NotNull @Parameter(name = "required_string_group", description = "Required String in group parameters", required = true, in = ParameterIn.QUERY) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @Parameter(name = "required_int64_group", description = "Required Integer in group parameters", required = true, in = ParameterIn.QUERY) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @Parameter(name = "string_group", description = "String in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @Parameter(name = "int64_group", description = "Integer in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + @Parameter(name = "string_group", description = "String in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @Parameter(name = "int64_group", description = "Integer in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index a4777d27a52..d8129dec10c 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -20,6 +20,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java index cacd5f0ea1f..5b3f7fdb3c4 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java @@ -22,6 +22,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java index fe8fbe4250d..2ecd4a20b89 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java index 8ade78f6c0a..6015875683f 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 830bbb7313d..96f67600df9 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesAnyType { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index bf1595a96f9..c1667ca6104 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesArray { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 52fffbdf38a..76db03e378c 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesBoolean { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index d4c05a241d5..63327058ed2 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -283,7 +283,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -295,11 +295,11 @@ public class AdditionalPropertiesClass { @Schema(name = "anytype_1", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } @@ -323,7 +323,7 @@ public class AdditionalPropertiesClass { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -335,11 +335,11 @@ public class AdditionalPropertiesClass { @Schema(name = "anytype_3", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 72ab9cbaf32..71832b3934a 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesInteger { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 5c61bb980aa..54c84c7a299 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesNumber { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index c5b9a7c551f..5aad3f623d8 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesObject { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 69ba6448e25..15aa4bd856d 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesString { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java index 1917ef14601..91ab33a1af7 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java @@ -80,7 +80,7 @@ public class BigCat extends Cat { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -92,11 +92,11 @@ public class BigCat extends Cat { @Schema(name = "kind", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java index 5068cf5192b..8061352c68f 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java @@ -34,7 +34,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -46,15 +46,15 @@ public class Capitalization { @Schema(name = "smallCamel", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -66,15 +66,15 @@ public class Capitalization { @Schema(name = "CapitalCamel", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -86,15 +86,15 @@ public class Capitalization { @Schema(name = "small_Snake", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -106,15 +106,15 @@ public class Capitalization { @Schema(name = "Capital_Snake", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -126,15 +126,15 @@ public class Capitalization { @Schema(name = "SCA_ETH_Flow_Points", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -146,11 +146,11 @@ public class Capitalization { @Schema(name = "ATT_NAME", description = "Name of the pet ", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java index ff52a5fb632..ae1ff30ca9a 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java @@ -48,7 +48,7 @@ public class Cat extends Animal { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -60,11 +60,11 @@ public class Cat extends Animal { @Schema(name = "declawed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java index 370ea62adc9..41860723735 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java @@ -37,7 +37,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -49,11 +49,11 @@ public class Category { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ChildWithNullable.java index 61fadeb20ae..08d29fd9d1c 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -32,7 +32,7 @@ public class ChildWithNullable extends ParentWithNullable { private @Nullable String otherProperty; - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -44,11 +44,11 @@ public class ChildWithNullable extends ParentWithNullable { @Schema(name = "otherProperty", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java index b488d65a4d9..c8d79f06b3c 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java @@ -25,7 +25,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -37,11 +37,11 @@ public class ClassModel { @Schema(name = "_class", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java index 2ac879d2247..93e6e610961 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java @@ -24,7 +24,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -36,11 +36,11 @@ public class Client { @Schema(name = "client", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java index 483252825a5..105f4e5cfd6 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java @@ -40,7 +40,7 @@ public class Dog extends Animal { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -52,11 +52,11 @@ public class Dog extends Animal { @Schema(name = "breed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java index 18661a6b527..3eb15047d97 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java @@ -101,7 +101,7 @@ public class EnumArrays { @Valid private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -113,11 +113,11 @@ public class EnumArrays { @Schema(name = "just_symbol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java index 9b1b15ea441..15185c08d97 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java @@ -191,7 +191,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -203,11 +203,11 @@ public class EnumTest { @Schema(name = "enum_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -231,7 +231,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -243,15 +243,15 @@ public class EnumTest { @Schema(name = "enum_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -263,15 +263,15 @@ public class EnumTest { @Schema(name = "enum_number", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -283,11 +283,11 @@ public class EnumTest { @Valid @Schema(name = "outerEnum", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/File.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/File.java index d1c656bf869..eaeb1a5deeb 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/File.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/File.java @@ -25,7 +25,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -37,11 +37,11 @@ public class File { @Schema(name = "sourceURI", description = "Test capitalization", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java index d620fcb5c5b..f2ab210d147 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -31,7 +31,7 @@ public class FileSchemaTestClass { @Valid private List<@Valid File> files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -43,11 +43,11 @@ public class FileSchemaTestClass { @Valid @Schema(name = "file", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java index efe9b15cbe3..1634cef9789 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java @@ -74,7 +74,7 @@ public class FormatTest { this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -88,15 +88,15 @@ public class FormatTest { @Min(10) @Max(100) @Schema(name = "integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -110,15 +110,15 @@ public class FormatTest { @Min(20) @Max(200) @Schema(name = "int32", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -130,11 +130,11 @@ public class FormatTest { @Schema(name = "int64", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -160,7 +160,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -174,15 +174,15 @@ public class FormatTest { @DecimalMin("54.3") @DecimalMax("987.6") @Schema(name = "float", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -196,15 +196,15 @@ public class FormatTest { @DecimalMin("67.8") @DecimalMax("123.4") @Schema(name = "double", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -216,11 +216,11 @@ public class FormatTest { @Pattern(regexp = "/[a-z]/i") @Schema(name = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -244,7 +244,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -256,11 +256,11 @@ public class FormatTest { @Valid @Schema(name = "binary", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -284,7 +284,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -296,15 +296,15 @@ public class FormatTest { @Valid @Schema(name = "dateTime", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -316,11 +316,11 @@ public class FormatTest { @Valid @Schema(name = "uuid", example = "72f98069-206d-4f12-9f12-3d1e525a8e84", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -344,7 +344,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -356,11 +356,11 @@ public class FormatTest { @Valid @Schema(name = "BigDecimal", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 81f356e7131..eba1d75a4cb 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -28,7 +28,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -40,15 +40,15 @@ public class HasOnlyReadOnly { @Schema(name = "bar", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -60,11 +60,11 @@ public class HasOnlyReadOnly { @Schema(name = "foo", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index e59884edcbf..240b93433ef 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -36,7 +36,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -48,15 +48,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @Schema(name = "uuid", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -68,11 +68,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @Schema(name = "dateTime", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java index adb553d7128..9b2e9c3fdd0 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java @@ -29,7 +29,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -41,15 +41,15 @@ public class Model200Response { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -61,11 +61,11 @@ public class Model200Response { @Schema(name = "class", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java index 159c9942618..53239483e97 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -30,7 +30,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -42,15 +42,15 @@ public class ModelApiResponse { @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -62,15 +62,15 @@ public class ModelApiResponse { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -82,11 +82,11 @@ public class ModelApiResponse { @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelList.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelList.java index a1eb773676b..9ccf8e4b5bc 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelList.java @@ -26,7 +26,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -38,11 +38,11 @@ public class ModelList { @Schema(name = "123-list", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java index aad5cf1a29d..3ebc70736ad 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java @@ -27,7 +27,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -39,11 +39,11 @@ public class ModelReturn { @Schema(name = "return", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java index 060f4e82501..ec2d7c5927e 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java @@ -62,7 +62,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -74,15 +74,15 @@ public class Name { @Schema(name = "snake_case", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -94,15 +94,15 @@ public class Name { @Schema(name = "property", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -114,11 +114,11 @@ public class Name { @Schema(name = "123Number", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java index c8af44357a8..4cee785c4fa 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java @@ -25,7 +25,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -37,11 +37,11 @@ public class NumberOnly { @Valid @Schema(name = "JustNumber", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java index f0cf689c356..76c1be4fdbb 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java @@ -75,7 +75,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -87,15 +87,15 @@ public class Order { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -107,15 +107,15 @@ public class Order { @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -127,15 +127,15 @@ public class Order { @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -147,15 +147,15 @@ public class Order { @Valid @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -167,11 +167,11 @@ public class Order { @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java index badf9bcd012..e8c016b7d3b 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java @@ -29,7 +29,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -41,15 +41,15 @@ public class OuterComposite { @Valid @Schema(name = "my_number", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -61,15 +61,15 @@ public class OuterComposite { @Schema(name = "my_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -81,11 +81,11 @@ public class OuterComposite { @Schema(name = "my_boolean", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ParentWithNullable.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ParentWithNullable.java index 759ce2361a1..26d56f6dc36 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ParentWithNullable.java @@ -75,7 +75,7 @@ public class ParentWithNullable { private JsonNullable nullableProperty = JsonNullable.undefined(); - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -87,11 +87,11 @@ public class ParentWithNullable { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java index 564926c9b34..4774dbbdaca 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java @@ -95,7 +95,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -107,15 +107,15 @@ public class Pet { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -127,11 +127,11 @@ public class Pet { @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -212,7 +212,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -226,7 +226,7 @@ public class Pet { @Schema(name = "status", description = "pet status in the store", deprecated = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -234,7 +234,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java index fb39cd3b9b4..8b1e50c5baf 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -26,7 +26,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -38,15 +38,15 @@ public class ReadOnlyFirst { @Schema(name = "bar", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -58,11 +58,11 @@ public class ReadOnlyFirst { @Schema(name = "baz", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java index fd046d7fe6b..943e77a3676 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java @@ -30,7 +30,7 @@ public class ResponseObjectWithDifferentFieldNames { private @Nullable String propertyNameWithSpaces; - public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNames normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -42,15 +42,15 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "normalPropertyName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -62,15 +62,15 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "UPPER_CASE_PROPERTY_SNAKE", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -82,15 +82,15 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "lower-case-property-dashes", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -102,11 +102,11 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "property name with spaces", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java index 342d0437dec..68bce8ca908 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java @@ -26,7 +26,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -38,11 +38,11 @@ public class SpecialModelName { @Schema(name = "$special[property.name]", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java index f7dd6a14494..e8b67439e58 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java @@ -26,7 +26,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -38,15 +38,15 @@ public class Tag { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -58,11 +58,11 @@ public class Tag { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java index 98c76f55ce9..a56fd230247 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java @@ -38,7 +38,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -50,15 +50,15 @@ public class User { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -70,15 +70,15 @@ public class User { @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -90,15 +90,15 @@ public class User { @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -110,15 +110,15 @@ public class User { @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -130,15 +130,15 @@ public class User { @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -150,15 +150,15 @@ public class User { @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -170,15 +170,15 @@ public class User { @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -190,11 +190,11 @@ public class User { @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java index 8fb1a3ebcdf..f4292bd33da 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java @@ -93,7 +93,7 @@ public class XmlItem { @Valid private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -105,15 +105,15 @@ public class XmlItem { @Schema(name = "attribute_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -125,15 +125,15 @@ public class XmlItem { @Valid @Schema(name = "attribute_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -145,15 +145,15 @@ public class XmlItem { @Schema(name = "attribute_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -165,11 +165,11 @@ public class XmlItem { @Schema(name = "attribute_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -201,7 +201,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -213,15 +213,15 @@ public class XmlItem { @Schema(name = "name_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -233,15 +233,15 @@ public class XmlItem { @Valid @Schema(name = "name_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -253,15 +253,15 @@ public class XmlItem { @Schema(name = "name_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -273,11 +273,11 @@ public class XmlItem { @Schema(name = "name_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -337,7 +337,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -349,15 +349,15 @@ public class XmlItem { @Schema(name = "prefix_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -369,15 +369,15 @@ public class XmlItem { @Valid @Schema(name = "prefix_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -389,15 +389,15 @@ public class XmlItem { @Schema(name = "prefix_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -409,11 +409,11 @@ public class XmlItem { @Schema(name = "prefix_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -473,7 +473,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -485,15 +485,15 @@ public class XmlItem { @Schema(name = "namespace_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -505,15 +505,15 @@ public class XmlItem { @Valid @Schema(name = "namespace_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -525,15 +525,15 @@ public class XmlItem { @Schema(name = "namespace_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -545,11 +545,11 @@ public class XmlItem { @Schema(name = "namespace_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -609,7 +609,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -621,15 +621,15 @@ public class XmlItem { @Schema(name = "prefix_ns_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -641,15 +641,15 @@ public class XmlItem { @Valid @Schema(name = "prefix_ns_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -661,15 +661,15 @@ public class XmlItem { @Schema(name = "prefix_ns_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -681,11 +681,11 @@ public class XmlItem { @Schema(name = "prefix_ns_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/api/PetApi.java b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/api/PetApi.java index fa43d440103..8f58348e218 100644 --- a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/api/PetApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.Pet; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -82,7 +83,7 @@ public interface PetApi { default ResponseEntity deletePet( @PathVariable("petId") Long petId, - @RequestHeader(value = "api_key", required = false) String apiKey + @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/api/StoreApi.java b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/api/StoreApi.java index 19a6cf00577..c8327740559 100644 --- a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/api/StoreApi.java @@ -9,6 +9,7 @@ import java.util.Map; import org.openapitools.model.Order; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/api/UserApi.java b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/api/UserApi.java index b59d70a1b4c..5116c15ddd6 100644 --- a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/api/UserApi.java @@ -9,6 +9,7 @@ import java.time.OffsetDateTime; import org.openapitools.model.User; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/Category.java b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/Category.java index 06fdba953a9..137d5464b90 100644 --- a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/Category.java +++ b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/Category.java @@ -25,7 +25,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -36,15 +36,15 @@ public class Category { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -55,11 +55,11 @@ public class Category { */ @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/ModelApiResponse.java index 9064a120041..1b1944c9e22 100644 --- a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -29,7 +29,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -40,15 +40,15 @@ public class ModelApiResponse { */ @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -59,15 +59,15 @@ public class ModelApiResponse { */ @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -78,11 +78,11 @@ public class ModelApiResponse { */ @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/Order.java b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/Order.java index a64cf7a6775..61d646a5068 100644 --- a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/Order.java +++ b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/Order.java @@ -74,7 +74,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -85,15 +85,15 @@ public class Order { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -104,15 +104,15 @@ public class Order { */ @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -123,15 +123,15 @@ public class Order { */ @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -142,15 +142,15 @@ public class Order { */ @Valid @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -161,11 +161,11 @@ public class Order { */ @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/Pet.java b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/Pet.java index 10c50147f5a..bf723669c8c 100644 --- a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/Pet.java +++ b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/Pet.java @@ -91,7 +91,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -102,15 +102,15 @@ public class Pet { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -121,11 +121,11 @@ public class Pet { */ @Valid @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -202,7 +202,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -215,7 +215,7 @@ public class Pet { @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -223,7 +223,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/Tag.java b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/Tag.java index b9e152d5d6c..3ad3c6cf4df 100644 --- a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/Tag.java +++ b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/Tag.java @@ -25,7 +25,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -36,15 +36,15 @@ public class Tag { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -55,11 +55,11 @@ public class Tag { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/User.java b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/User.java index e56d600571b..8bf9643a895 100644 --- a/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/User.java +++ b/samples/openapi3/server/petstore/springboot-source/src/main/java/org/openapitools/model/User.java @@ -37,7 +37,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -48,15 +48,15 @@ public class User { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -67,15 +67,15 @@ public class User { */ @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -86,15 +86,15 @@ public class User { */ @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -105,15 +105,15 @@ public class User { */ @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -124,15 +124,15 @@ public class User { */ @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -143,15 +143,15 @@ public class User { */ @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -162,15 +162,15 @@ public class User { */ @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -181,11 +181,11 @@ public class User { */ @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java index f373465dcb0..9e71f7e4e0e 100644 --- a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -124,7 +125,7 @@ public interface PetApi { default ResponseEntity deletePet( @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId, - @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) String apiKey + @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java index 4b0f5e0b6de..882ece00aa3 100644 --- a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java index 60153b0486e..52eb135af1b 100644 --- a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/Category.java b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/Category.java index 38f132ba454..52ef92b93e2 100644 --- a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/Category.java +++ b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/Category.java @@ -27,7 +27,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Category { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Category { @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/ModelApiResponse.java index fa47f8d98c3..62273b74b4c 100644 --- a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/Order.java b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/Order.java index f5a068284e8..30931ba03e0 100644 --- a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/Order.java +++ b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java index d52989b56c2..ffefbca982c 100644 --- a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java +++ b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java @@ -93,7 +93,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public class Pet { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -125,11 +125,11 @@ public class Pet { @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -209,7 +209,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public class Pet { @Schema(name = "status", description = "pet status in the store", deprecated = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -231,7 +231,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/Tag.java b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/Tag.java index 69fd62f84e4..4c6df0f0931 100644 --- a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/Tag.java +++ b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/User.java b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/User.java index b6206a76796..08a3518b7b4 100644 --- a/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/User.java +++ b/samples/openapi3/server/petstore/springboot/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/AnotherFakeApi.java index dd388c8cd1d..5b330a34ab3 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -20,6 +20,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/FakeApi.java index ff9f597d90b..d7728ec7210 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/FakeApi.java @@ -32,6 +32,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -102,7 +103,7 @@ public interface FakeApi { ) ResponseEntity fakeOuterBooleanSerialize( - @Parameter(name = "body", description = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body + @Parameter(name = "body", description = "Input boolean as post body") @Valid @RequestBody(required = false) @Nullable Boolean body ) throws Exception; @@ -131,7 +132,7 @@ public interface FakeApi { ) ResponseEntity fakeOuterCompositeSerialize( - @Parameter(name = "OuterComposite", description = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite outerComposite + @Parameter(name = "OuterComposite", description = "Input composite as post body") @Valid @RequestBody(required = false) @Nullable OuterComposite outerComposite ) throws Exception; @@ -160,7 +161,7 @@ public interface FakeApi { ) ResponseEntity fakeOuterNumberSerialize( - @Parameter(name = "body", description = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body + @Parameter(name = "body", description = "Input number as post body") @Valid @RequestBody(required = false) @Nullable BigDecimal body ) throws Exception; @@ -189,7 +190,7 @@ public interface FakeApi { ) ResponseEntity fakeOuterStringSerialize( - @Parameter(name = "body", description = "Input string as post body") @Valid @RequestBody(required = false) String body + @Parameter(name = "body", description = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body ) throws Exception; @@ -391,12 +392,12 @@ public interface FakeApi { ) ResponseEntity testEnumParameters( - @Parameter(name = "enum_header_string_array", description = "Header parameter enum test (string array)", in = ParameterIn.HEADER) @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @Parameter(name = "enum_header_string_array", description = "Header parameter enum test (string array)", in = ParameterIn.HEADER) @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @Parameter(name = "enum_header_string", description = "Header parameter enum test (string)", in = ParameterIn.HEADER) @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @Parameter(name = "enum_query_string_array", description = "Query parameter enum test (string array)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @Parameter(name = "enum_query_string_array", description = "Query parameter enum test (string array)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @Parameter(name = "enum_query_string", description = "Query parameter enum test (string)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @Parameter(name = "enum_query_integer", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @Parameter(name = "enum_query_double", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @Parameter(name = "enum_query_integer", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @Parameter(name = "enum_query_double", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @Parameter(name = "enum_form_string_array", description = "Form parameter enum test (string array)") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @Parameter(name = "enum_form_string", description = "Form parameter enum test (string)") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString ) throws Exception; @@ -432,9 +433,9 @@ public interface FakeApi { @NotNull @Parameter(name = "required_string_group", description = "Required String in group parameters", required = true, in = ParameterIn.QUERY) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @Parameter(name = "required_boolean_group", description = "Required Boolean in group parameters", required = true, in = ParameterIn.HEADER) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @NotNull @Parameter(name = "required_int64_group", description = "Required Integer in group parameters", required = true, in = ParameterIn.QUERY) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @Parameter(name = "string_group", description = "String in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @Parameter(name = "boolean_group", description = "Boolean in group parameters", in = ParameterIn.HEADER) @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @Parameter(name = "int64_group", description = "Integer in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + @Parameter(name = "string_group", description = "String in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @Parameter(name = "boolean_group", description = "Boolean in group parameters", in = ParameterIn.HEADER) @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @Parameter(name = "int64_group", description = "Integer in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ) throws Exception; diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index f2448e1c178..b574cda2018 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -20,6 +20,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/PetApi.java index bd875b23d24..680fc659b4d 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/PetApi.java @@ -22,6 +22,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -101,7 +102,7 @@ public interface PetApi { ResponseEntity deletePet( @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId, - @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) String apiKey + @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) throws Exception; diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/StoreApi.java index a7ee0395385..3ada957f961 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/StoreApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/UserApi.java index c84ca10f505..45707aebd14 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/UserApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 830bbb7313d..96f67600df9 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesAnyType { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index bf1595a96f9..c1667ca6104 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesArray { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 52fffbdf38a..76db03e378c 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesBoolean { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index d4c05a241d5..63327058ed2 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -283,7 +283,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -295,11 +295,11 @@ public class AdditionalPropertiesClass { @Schema(name = "anytype_1", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } @@ -323,7 +323,7 @@ public class AdditionalPropertiesClass { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -335,11 +335,11 @@ public class AdditionalPropertiesClass { @Schema(name = "anytype_3", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 72ab9cbaf32..71832b3934a 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesInteger { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 5c61bb980aa..54c84c7a299 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesNumber { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index c5b9a7c551f..5aad3f623d8 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesObject { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 69ba6448e25..15aa4bd856d 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesString { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/BigCat.java index 1917ef14601..91ab33a1af7 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/BigCat.java @@ -80,7 +80,7 @@ public class BigCat extends Cat { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -92,11 +92,11 @@ public class BigCat extends Cat { @Schema(name = "kind", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Capitalization.java index 5068cf5192b..8061352c68f 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Capitalization.java @@ -34,7 +34,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -46,15 +46,15 @@ public class Capitalization { @Schema(name = "smallCamel", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -66,15 +66,15 @@ public class Capitalization { @Schema(name = "CapitalCamel", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -86,15 +86,15 @@ public class Capitalization { @Schema(name = "small_Snake", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -106,15 +106,15 @@ public class Capitalization { @Schema(name = "Capital_Snake", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -126,15 +126,15 @@ public class Capitalization { @Schema(name = "SCA_ETH_Flow_Points", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -146,11 +146,11 @@ public class Capitalization { @Schema(name = "ATT_NAME", description = "Name of the pet ", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Cat.java index ff52a5fb632..ae1ff30ca9a 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Cat.java @@ -48,7 +48,7 @@ public class Cat extends Animal { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -60,11 +60,11 @@ public class Cat extends Animal { @Schema(name = "declawed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Category.java index 370ea62adc9..41860723735 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Category.java @@ -37,7 +37,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -49,11 +49,11 @@ public class Category { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ChildWithNullable.java index 61fadeb20ae..08d29fd9d1c 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -32,7 +32,7 @@ public class ChildWithNullable extends ParentWithNullable { private @Nullable String otherProperty; - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -44,11 +44,11 @@ public class ChildWithNullable extends ParentWithNullable { @Schema(name = "otherProperty", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ClassModel.java index b488d65a4d9..c8d79f06b3c 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ClassModel.java @@ -25,7 +25,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -37,11 +37,11 @@ public class ClassModel { @Schema(name = "_class", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Client.java index 2ac879d2247..93e6e610961 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Client.java @@ -24,7 +24,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -36,11 +36,11 @@ public class Client { @Schema(name = "client", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Dog.java index 483252825a5..105f4e5cfd6 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Dog.java @@ -40,7 +40,7 @@ public class Dog extends Animal { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -52,11 +52,11 @@ public class Dog extends Animal { @Schema(name = "breed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/EnumArrays.java index 18661a6b527..3eb15047d97 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/EnumArrays.java @@ -101,7 +101,7 @@ public class EnumArrays { @Valid private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -113,11 +113,11 @@ public class EnumArrays { @Schema(name = "just_symbol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/EnumTest.java index 9b1b15ea441..15185c08d97 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/EnumTest.java @@ -191,7 +191,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -203,11 +203,11 @@ public class EnumTest { @Schema(name = "enum_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -231,7 +231,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -243,15 +243,15 @@ public class EnumTest { @Schema(name = "enum_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -263,15 +263,15 @@ public class EnumTest { @Schema(name = "enum_number", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -283,11 +283,11 @@ public class EnumTest { @Valid @Schema(name = "outerEnum", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/File.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/File.java index d1c656bf869..eaeb1a5deeb 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/File.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/File.java @@ -25,7 +25,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -37,11 +37,11 @@ public class File { @Schema(name = "sourceURI", description = "Test capitalization", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/FileSchemaTestClass.java index d620fcb5c5b..f2ab210d147 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -31,7 +31,7 @@ public class FileSchemaTestClass { @Valid private List<@Valid File> files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -43,11 +43,11 @@ public class FileSchemaTestClass { @Valid @Schema(name = "file", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/FormatTest.java index efe9b15cbe3..1634cef9789 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/FormatTest.java @@ -74,7 +74,7 @@ public class FormatTest { this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -88,15 +88,15 @@ public class FormatTest { @Min(10) @Max(100) @Schema(name = "integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -110,15 +110,15 @@ public class FormatTest { @Min(20) @Max(200) @Schema(name = "int32", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -130,11 +130,11 @@ public class FormatTest { @Schema(name = "int64", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -160,7 +160,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -174,15 +174,15 @@ public class FormatTest { @DecimalMin("54.3") @DecimalMax("987.6") @Schema(name = "float", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -196,15 +196,15 @@ public class FormatTest { @DecimalMin("67.8") @DecimalMax("123.4") @Schema(name = "double", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -216,11 +216,11 @@ public class FormatTest { @Pattern(regexp = "/[a-z]/i") @Schema(name = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -244,7 +244,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -256,11 +256,11 @@ public class FormatTest { @Valid @Schema(name = "binary", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -284,7 +284,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -296,15 +296,15 @@ public class FormatTest { @Valid @Schema(name = "dateTime", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -316,11 +316,11 @@ public class FormatTest { @Valid @Schema(name = "uuid", example = "72f98069-206d-4f12-9f12-3d1e525a8e84", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -344,7 +344,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -356,11 +356,11 @@ public class FormatTest { @Valid @Schema(name = "BigDecimal", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 81f356e7131..eba1d75a4cb 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -28,7 +28,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -40,15 +40,15 @@ public class HasOnlyReadOnly { @Schema(name = "bar", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -60,11 +60,11 @@ public class HasOnlyReadOnly { @Schema(name = "foo", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index e59884edcbf..240b93433ef 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -36,7 +36,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -48,15 +48,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @Schema(name = "uuid", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -68,11 +68,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @Schema(name = "dateTime", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Model200Response.java index adb553d7128..9b2e9c3fdd0 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Model200Response.java @@ -29,7 +29,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -41,15 +41,15 @@ public class Model200Response { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -61,11 +61,11 @@ public class Model200Response { @Schema(name = "class", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ModelApiResponse.java index 159c9942618..53239483e97 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -30,7 +30,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -42,15 +42,15 @@ public class ModelApiResponse { @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -62,15 +62,15 @@ public class ModelApiResponse { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -82,11 +82,11 @@ public class ModelApiResponse { @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ModelList.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ModelList.java index a1eb773676b..9ccf8e4b5bc 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ModelList.java @@ -26,7 +26,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -38,11 +38,11 @@ public class ModelList { @Schema(name = "123-list", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ModelReturn.java index aad5cf1a29d..3ebc70736ad 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ModelReturn.java @@ -27,7 +27,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -39,11 +39,11 @@ public class ModelReturn { @Schema(name = "return", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Name.java index 060f4e82501..ec2d7c5927e 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Name.java @@ -62,7 +62,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -74,15 +74,15 @@ public class Name { @Schema(name = "snake_case", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -94,15 +94,15 @@ public class Name { @Schema(name = "property", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -114,11 +114,11 @@ public class Name { @Schema(name = "123Number", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/NumberOnly.java index c8af44357a8..4cee785c4fa 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/NumberOnly.java @@ -25,7 +25,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -37,11 +37,11 @@ public class NumberOnly { @Valid @Schema(name = "JustNumber", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Order.java index f0cf689c356..76c1be4fdbb 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Order.java @@ -75,7 +75,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -87,15 +87,15 @@ public class Order { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -107,15 +107,15 @@ public class Order { @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -127,15 +127,15 @@ public class Order { @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -147,15 +147,15 @@ public class Order { @Valid @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -167,11 +167,11 @@ public class Order { @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/OuterComposite.java index badf9bcd012..e8c016b7d3b 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/OuterComposite.java @@ -29,7 +29,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -41,15 +41,15 @@ public class OuterComposite { @Valid @Schema(name = "my_number", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -61,15 +61,15 @@ public class OuterComposite { @Schema(name = "my_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -81,11 +81,11 @@ public class OuterComposite { @Schema(name = "my_boolean", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ParentWithNullable.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ParentWithNullable.java index 759ce2361a1..26d56f6dc36 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ParentWithNullable.java @@ -75,7 +75,7 @@ public class ParentWithNullable { private JsonNullable nullableProperty = JsonNullable.undefined(); - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -87,11 +87,11 @@ public class ParentWithNullable { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Pet.java index 564926c9b34..4774dbbdaca 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Pet.java @@ -95,7 +95,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -107,15 +107,15 @@ public class Pet { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -127,11 +127,11 @@ public class Pet { @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -212,7 +212,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -226,7 +226,7 @@ public class Pet { @Schema(name = "status", description = "pet status in the store", deprecated = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -234,7 +234,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ReadOnlyFirst.java index fb39cd3b9b4..8b1e50c5baf 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -26,7 +26,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -38,15 +38,15 @@ public class ReadOnlyFirst { @Schema(name = "bar", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -58,11 +58,11 @@ public class ReadOnlyFirst { @Schema(name = "baz", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java index fd046d7fe6b..943e77a3676 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java @@ -30,7 +30,7 @@ public class ResponseObjectWithDifferentFieldNames { private @Nullable String propertyNameWithSpaces; - public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNames normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -42,15 +42,15 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "normalPropertyName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -62,15 +62,15 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "UPPER_CASE_PROPERTY_SNAKE", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -82,15 +82,15 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "lower-case-property-dashes", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -102,11 +102,11 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "property name with spaces", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/SpecialModelName.java index 342d0437dec..68bce8ca908 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/SpecialModelName.java @@ -26,7 +26,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -38,11 +38,11 @@ public class SpecialModelName { @Schema(name = "$special[property.name]", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Tag.java index f7dd6a14494..e8b67439e58 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/Tag.java @@ -26,7 +26,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -38,15 +38,15 @@ public class Tag { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -58,11 +58,11 @@ public class Tag { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/User.java index 98c76f55ce9..a56fd230247 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/User.java @@ -38,7 +38,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -50,15 +50,15 @@ public class User { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -70,15 +70,15 @@ public class User { @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -90,15 +90,15 @@ public class User { @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -110,15 +110,15 @@ public class User { @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -130,15 +130,15 @@ public class User { @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -150,15 +150,15 @@ public class User { @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -170,15 +170,15 @@ public class User { @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -190,11 +190,11 @@ public class User { @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/XmlItem.java index 8fb1a3ebcdf..f4292bd33da 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/XmlItem.java @@ -93,7 +93,7 @@ public class XmlItem { @Valid private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -105,15 +105,15 @@ public class XmlItem { @Schema(name = "attribute_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -125,15 +125,15 @@ public class XmlItem { @Valid @Schema(name = "attribute_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -145,15 +145,15 @@ public class XmlItem { @Schema(name = "attribute_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -165,11 +165,11 @@ public class XmlItem { @Schema(name = "attribute_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -201,7 +201,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -213,15 +213,15 @@ public class XmlItem { @Schema(name = "name_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -233,15 +233,15 @@ public class XmlItem { @Valid @Schema(name = "name_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -253,15 +253,15 @@ public class XmlItem { @Schema(name = "name_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -273,11 +273,11 @@ public class XmlItem { @Schema(name = "name_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -337,7 +337,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -349,15 +349,15 @@ public class XmlItem { @Schema(name = "prefix_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -369,15 +369,15 @@ public class XmlItem { @Valid @Schema(name = "prefix_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -389,15 +389,15 @@ public class XmlItem { @Schema(name = "prefix_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -409,11 +409,11 @@ public class XmlItem { @Schema(name = "prefix_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -473,7 +473,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -485,15 +485,15 @@ public class XmlItem { @Schema(name = "namespace_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -505,15 +505,15 @@ public class XmlItem { @Valid @Schema(name = "namespace_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -525,15 +525,15 @@ public class XmlItem { @Schema(name = "namespace_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -545,11 +545,11 @@ public class XmlItem { @Schema(name = "namespace_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -609,7 +609,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -621,15 +621,15 @@ public class XmlItem { @Schema(name = "prefix_ns_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -641,15 +641,15 @@ public class XmlItem { @Valid @Schema(name = "prefix_ns_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -661,15 +661,15 @@ public class XmlItem { @Schema(name = "prefix_ns_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -681,11 +681,11 @@ public class XmlItem { @Schema(name = "prefix_ns_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/server/petstore/spring-boot-nullable-set/src/main/java/org/openapitools/api/NullableApi.java b/samples/server/petstore/spring-boot-nullable-set/src/main/java/org/openapitools/api/NullableApi.java index d335d301060..189c3947166 100644 --- a/samples/server/petstore/spring-boot-nullable-set/src/main/java/org/openapitools/api/NullableApi.java +++ b/samples/server/petstore/spring-boot-nullable-set/src/main/java/org/openapitools/api/NullableApi.java @@ -20,6 +20,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -65,7 +66,7 @@ public interface NullableApi { ) default ResponseEntity nullableTest( - @Parameter(name = "ObjectWithUniqueItems", description = "") @Valid @RequestBody(required = false) ObjectWithUniqueItems objectWithUniqueItems + @Parameter(name = "ObjectWithUniqueItems", description = "") @Valid @RequestBody(required = false) @Nullable ObjectWithUniqueItems objectWithUniqueItems ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/spring-boot-nullable-set/src/main/java/org/openapitools/model/ObjectWithUniqueItems.java b/samples/server/petstore/spring-boot-nullable-set/src/main/java/org/openapitools/model/ObjectWithUniqueItems.java index f2b51222c68..18027338e26 100644 --- a/samples/server/petstore/spring-boot-nullable-set/src/main/java/org/openapitools/model/ObjectWithUniqueItems.java +++ b/samples/server/petstore/spring-boot-nullable-set/src/main/java/org/openapitools/model/ObjectWithUniqueItems.java @@ -163,7 +163,7 @@ public class ObjectWithUniqueItems { this.notNullList = notNullList; } - public ObjectWithUniqueItems notNullDateField(OffsetDateTime notNullDateField) { + public ObjectWithUniqueItems notNullDateField(@Nullable OffsetDateTime notNullDateField) { this.notNullDateField = notNullDateField; return this; } @@ -175,15 +175,15 @@ public class ObjectWithUniqueItems { @Valid @Schema(name = "notNullDateField", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("notNullDateField") - public OffsetDateTime getNotNullDateField() { + public @Nullable OffsetDateTime getNotNullDateField() { return notNullDateField; } - public void setNotNullDateField(OffsetDateTime notNullDateField) { + public void setNotNullDateField(@Nullable OffsetDateTime notNullDateField) { this.notNullDateField = notNullDateField; } - public ObjectWithUniqueItems nullDateField(OffsetDateTime nullDateField) { + public ObjectWithUniqueItems nullDateField(@Nullable OffsetDateTime nullDateField) { this.nullDateField = nullDateField; return this; } @@ -195,11 +195,11 @@ public class ObjectWithUniqueItems { @Valid @Schema(name = "nullDateField", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("nullDateField") - public OffsetDateTime getNullDateField() { + public @Nullable OffsetDateTime getNullDateField() { return nullDateField; } - public void setNullDateField(OffsetDateTime nullDateField) { + public void setNullDateField(@Nullable OffsetDateTime nullDateField) { this.nullDateField = nullDateField; } diff --git a/samples/server/petstore/springboot-api-response-examples/src/main/java/org/openapitools/api/DogsApi.java b/samples/server/petstore/springboot-api-response-examples/src/main/java/org/openapitools/api/DogsApi.java index 8d9ab9d7767..e0e8378eaaa 100644 --- a/samples/server/petstore/springboot-api-response-examples/src/main/java/org/openapitools/api/DogsApi.java +++ b/samples/server/petstore/springboot-api-response-examples/src/main/java/org/openapitools/api/DogsApi.java @@ -19,6 +19,7 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -80,7 +81,7 @@ public interface DogsApi { ) default ResponseEntity createDog( - @Parameter(name = "Dog", description = "") @Valid @RequestBody(required = false) Dog dog + @Parameter(name = "Dog", description = "") @Valid @RequestBody(required = false) @Nullable Dog dog ) { return getDelegate().createDog(dog); } diff --git a/samples/server/petstore/springboot-api-response-examples/src/main/java/org/openapitools/api/DogsApiDelegate.java b/samples/server/petstore/springboot-api-response-examples/src/main/java/org/openapitools/api/DogsApiDelegate.java index 5fba7a169e4..c459bcaccbf 100644 --- a/samples/server/petstore/springboot-api-response-examples/src/main/java/org/openapitools/api/DogsApiDelegate.java +++ b/samples/server/petstore/springboot-api-response-examples/src/main/java/org/openapitools/api/DogsApiDelegate.java @@ -5,6 +5,7 @@ import org.openapitools.model.Error; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-api-response-examples/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-api-response-examples/src/main/java/org/openapitools/model/Dog.java index 7a9f0975667..2bc48e0b319 100644 --- a/samples/server/petstore/springboot-api-response-examples/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-api-response-examples/src/main/java/org/openapitools/model/Dog.java @@ -26,7 +26,7 @@ public class Dog { private @Nullable Integer age; - public Dog name(String name) { + public Dog name(@Nullable String name) { this.name = name; return this; } @@ -38,15 +38,15 @@ public class Dog { @Pattern(regexp = "^[a-zA-Z]+$", message="Name must contain only letters") @Size(max = 50) @Schema(name = "name", example = "Rex", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } - public Dog age(Integer age) { + public Dog age(@Nullable Integer age) { this.age = age; return this; } @@ -59,11 +59,11 @@ public class Dog { @Min(0) @Schema(name = "age", example = "5", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("age") - public Integer getAge() { + public @Nullable Integer getAge() { return age; } - public void setAge(Integer age) { + public void setAge(@Nullable Integer age) { this.age = age; } diff --git a/samples/server/petstore/springboot-api-response-examples/src/main/java/org/openapitools/model/Error.java b/samples/server/petstore/springboot-api-response-examples/src/main/java/org/openapitools/model/Error.java index d5e16aa1eab..89ce6122450 100644 --- a/samples/server/petstore/springboot-api-response-examples/src/main/java/org/openapitools/model/Error.java +++ b/samples/server/petstore/springboot-api-response-examples/src/main/java/org/openapitools/model/Error.java @@ -26,7 +26,7 @@ public class Error { private @Nullable String message; - public Error code(Integer code) { + public Error code(@Nullable Integer code) { this.code = code; return this; } @@ -38,15 +38,15 @@ public class Error { @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public Error message(String message) { + public Error message(@Nullable String message) { this.message = message; return this; } @@ -58,11 +58,11 @@ public class Error { @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java index 11b27787482..19216bce9fa 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.Client; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java index d247f03fcb0..ebc485579ca 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java @@ -21,6 +21,7 @@ import org.openapitools.model.XmlItem; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -98,7 +99,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterBooleanSerialize( - @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body + @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) @Nullable Boolean body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -130,7 +131,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterCompositeSerialize( - @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite outerComposite + @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) @Nullable OuterComposite outerComposite ) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -171,7 +172,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterNumberSerialize( - @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body + @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) @Nullable BigDecimal body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -203,7 +204,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -444,12 +445,12 @@ public interface FakeApi { ) default ResponseEntity testEnumParameters( - @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString ) { @@ -488,9 +489,9 @@ public interface FakeApi { @NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 888f4b118ab..ce0c01322a3 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.Client; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java index fe92a8d3cf2..65307e0d7ba 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/PetApi.java @@ -11,6 +11,7 @@ import java.util.Set; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -103,7 +104,7 @@ public interface PetApi { default ResponseEntity deletePet( @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId, - @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey + @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java index da1b1ec7186..4e10b2ec59d 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/StoreApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.Order; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java index 0448069b51b..d5689ca159c 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/UserApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.User; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index a1d98f3c4bb..e0c5987d581 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesAnyType { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 91e80535bdc..bc503873604 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesArray { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 799ab80c457..53748d1a500 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesBoolean { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 11a89108aa1..2dbaf6fa904 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -280,7 +280,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -292,15 +292,15 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@Nullable Object anytype2) { this.anytype2 = anytype2; return this; } @@ -312,15 +312,15 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_2") - public Object getAnytype2() { + public @Nullable Object getAnytype2() { return anytype2; } - public void setAnytype2(Object anytype2) { + public void setAnytype2(@Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -332,11 +332,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index e10e1ed8cff..643bd785a36 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesInteger { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index ec7de98b072..779bfd4932c 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesNumber { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index f1ca5c4723e..2a5ae88ce25 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesObject { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 878e1c0d2f8..67e11f84450 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesString { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java index e6f273767d7..2f9ae2b94a6 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java @@ -80,7 +80,7 @@ public class BigCat extends Cat { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -92,11 +92,11 @@ public class BigCat extends Cat { @ApiModelProperty(value = "") @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Capitalization.java index c31ebe71f8a..b59ba040749 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Capitalization.java @@ -34,7 +34,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -46,15 +46,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -66,15 +66,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -86,15 +86,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -106,15 +106,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -126,15 +126,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -146,11 +146,11 @@ public class Capitalization { @ApiModelProperty(value = "Name of the pet ") @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Cat.java index 390ea2ab167..6943d96c7c4 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Cat.java @@ -48,7 +48,7 @@ public class Cat extends Animal { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -60,11 +60,11 @@ public class Cat extends Animal { @ApiModelProperty(value = "") @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Category.java index b357c79691e..e2d5db9cfe1 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Category.java @@ -37,7 +37,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -49,11 +49,11 @@ public class Category { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ChildWithNullable.java index b3dd0d06d4c..a2b76c202fa 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -30,7 +30,7 @@ public class ChildWithNullable extends ParentWithNullable { private @Nullable String otherProperty; - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -42,11 +42,11 @@ public class ChildWithNullable extends ParentWithNullable { @ApiModelProperty(value = "") @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ClassModel.java index 7f46768aad9..031214ec81e 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ClassModel.java @@ -25,7 +25,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -37,11 +37,11 @@ public class ClassModel { @ApiModelProperty(value = "") @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Client.java index e3e02184248..0813024920d 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Client.java @@ -24,7 +24,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -36,11 +36,11 @@ public class Client { @ApiModelProperty(value = "") @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ContainerDefaultValue.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ContainerDefaultValue.java index a9ffb5c7213..7e5175ce4ec 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ContainerDefaultValue.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ContainerDefaultValue.java @@ -49,7 +49,7 @@ public class ContainerDefaultValue { this.requiredArray = requiredArray; } - public ContainerDefaultValue nullableArray(List nullableArray) { + public ContainerDefaultValue nullableArray(@Nullable List nullableArray) { this.nullableArray = nullableArray; return this; } @@ -69,11 +69,11 @@ public class ContainerDefaultValue { @ApiModelProperty(value = "") @JsonProperty("nullable_array") - public List getNullableArray() { + public @Nullable List getNullableArray() { return nullableArray; } - public void setNullableArray(List nullableArray) { + public void setNullableArray(@Nullable List nullableArray) { this.nullableArray = nullableArray; } @@ -133,7 +133,7 @@ public class ContainerDefaultValue { this.requiredArray = requiredArray; } - public ContainerDefaultValue nullableArrayWithDefault(List nullableArrayWithDefault) { + public ContainerDefaultValue nullableArrayWithDefault(@Nullable List nullableArrayWithDefault) { this.nullableArrayWithDefault = nullableArrayWithDefault; return this; } @@ -153,11 +153,11 @@ public class ContainerDefaultValue { @ApiModelProperty(value = "") @JsonProperty("nullable_array_with_default") - public List getNullableArrayWithDefault() { + public @Nullable List getNullableArrayWithDefault() { return nullableArrayWithDefault; } - public void setNullableArrayWithDefault(List nullableArrayWithDefault) { + public void setNullableArrayWithDefault(@Nullable List nullableArrayWithDefault) { this.nullableArrayWithDefault = nullableArrayWithDefault; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Dog.java index 4c66d12a2e8..bf8f6dce961 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Dog.java @@ -40,7 +40,7 @@ public class Dog extends Animal { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -52,11 +52,11 @@ public class Dog extends Animal { @ApiModelProperty(value = "") @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java index 4a92f34ec78..84bf0f22ff5 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumArrays.java @@ -101,7 +101,7 @@ public class EnumArrays { @Valid private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -113,11 +113,11 @@ public class EnumArrays { @ApiModelProperty(value = "") @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java index 2d7b1c57a96..b882444cda0 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java @@ -191,7 +191,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -203,11 +203,11 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -231,7 +231,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -243,15 +243,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -263,15 +263,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -283,11 +283,11 @@ public class EnumTest { @Valid @ApiModelProperty(value = "") @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/File.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/File.java index 546a234e4be..43f555503c8 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/File.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/File.java @@ -25,7 +25,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -37,11 +37,11 @@ public class File { @ApiModelProperty(value = "Test capitalization") @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 994175f4e77..0377a96c21e 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -31,7 +31,7 @@ public class FileSchemaTestClass { @Valid private List<@Valid File> files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -43,11 +43,11 @@ public class FileSchemaTestClass { @Valid @ApiModelProperty(value = "") @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FormatTest.java index 293848afc61..937db95c35a 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/FormatTest.java @@ -74,7 +74,7 @@ public class FormatTest { this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -88,15 +88,15 @@ public class FormatTest { @Min(10) @Max(100) @ApiModelProperty(value = "") @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -110,15 +110,15 @@ public class FormatTest { @Min(20) @Max(200) @ApiModelProperty(value = "") @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -130,11 +130,11 @@ public class FormatTest { @ApiModelProperty(value = "") @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -160,7 +160,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -174,15 +174,15 @@ public class FormatTest { @DecimalMin("54.3") @DecimalMax("987.6") @ApiModelProperty(value = "") @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -196,15 +196,15 @@ public class FormatTest { @DecimalMin("67.8") @DecimalMax("123.4") @ApiModelProperty(value = "") @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -216,11 +216,11 @@ public class FormatTest { @Pattern(regexp = "/[a-z]/i") @ApiModelProperty(value = "") @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -244,7 +244,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -256,11 +256,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -284,7 +284,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -296,15 +296,15 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -316,11 +316,11 @@ public class FormatTest { @Valid @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -344,7 +344,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -356,11 +356,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index c2346c7186c..8482134b30d 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -28,7 +28,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -40,15 +40,15 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -60,11 +60,11 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index ed07098c274..d9c90e1840b 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -36,7 +36,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -48,15 +48,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -68,11 +68,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Model200Response.java index 65fd35e6cea..1fbb59bd7d9 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Model200Response.java @@ -29,7 +29,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -41,15 +41,15 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -61,11 +61,11 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java index 5547ffe8c06..23ed26566ea 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -30,7 +30,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -42,15 +42,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -62,15 +62,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -82,11 +82,11 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelList.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelList.java index 78eb6b9ab0c..1cd6a41ed81 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelList.java @@ -26,7 +26,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -38,11 +38,11 @@ public class ModelList { @ApiModelProperty(value = "") @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java index 136b0a91dda..d05635721da 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ModelReturn.java @@ -27,7 +27,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -39,11 +39,11 @@ public class ModelReturn { @ApiModelProperty(value = "") @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Name.java index 3a77d5f5a5b..a22989ecb0f 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Name.java @@ -62,7 +62,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -74,15 +74,15 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -94,15 +94,15 @@ public class Name { @ApiModelProperty(value = "") @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -114,11 +114,11 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NullableMapProperty.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NullableMapProperty.java index 077b339b343..e9f0d1a7dc6 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NullableMapProperty.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NullableMapProperty.java @@ -27,7 +27,7 @@ public class NullableMapProperty { @Valid private @Nullable Map languageValues; - public NullableMapProperty languageValues(Map languageValues) { + public NullableMapProperty languageValues(@Nullable Map languageValues) { this.languageValues = languageValues; return this; } @@ -47,11 +47,11 @@ public class NullableMapProperty { @ApiModelProperty(value = "") @JsonProperty("languageValues") - public Map getLanguageValues() { + public @Nullable Map getLanguageValues() { return languageValues; } - public void setLanguageValues(Map languageValues) { + public void setLanguageValues(@Nullable Map languageValues) { this.languageValues = languageValues; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java index 11bf3b077b4..4d4a111a506 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/NumberOnly.java @@ -25,7 +25,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -37,11 +37,11 @@ public class NumberOnly { @Valid @ApiModelProperty(value = "") @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Order.java index 844c0cd2666..e5105062cb6 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Order.java @@ -75,7 +75,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -87,15 +87,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -107,15 +107,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -127,15 +127,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -147,15 +147,15 @@ public class Order { @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -167,11 +167,11 @@ public class Order { @ApiModelProperty(value = "Order Status") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java index f2276a649ac..2f1c77b9b45 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/OuterComposite.java @@ -29,7 +29,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -41,15 +41,15 @@ public class OuterComposite { @Valid @ApiModelProperty(value = "") @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -61,15 +61,15 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -81,11 +81,11 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ParentWithNullable.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ParentWithNullable.java index 0c063dd5c41..0e0a43cf865 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ParentWithNullable.java @@ -72,7 +72,7 @@ public class ParentWithNullable { private @Nullable String nullableProperty = null; - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -84,15 +84,15 @@ public class ParentWithNullable { @ApiModelProperty(value = "") @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } - public ParentWithNullable nullableProperty(String nullableProperty) { + public ParentWithNullable nullableProperty(@Nullable String nullableProperty) { this.nullableProperty = nullableProperty; return this; } @@ -104,11 +104,11 @@ public class ParentWithNullable { @ApiModelProperty(value = "") @JsonProperty("nullableProperty") - public String getNullableProperty() { + public @Nullable String getNullableProperty() { return nullableProperty; } - public void setNullableProperty(String nullableProperty) { + public void setNullableProperty(@Nullable String nullableProperty) { this.nullableProperty = nullableProperty; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Pet.java index dd26f80c6e0..a833d7f2af7 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Pet.java @@ -95,7 +95,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -107,15 +107,15 @@ public class Pet { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -127,11 +127,11 @@ public class Pet { @Valid @ApiModelProperty(value = "") @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -212,7 +212,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -226,7 +226,7 @@ public class Pet { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -234,7 +234,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 35a250fbe6f..16f6f505853 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -26,7 +26,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -38,15 +38,15 @@ public class ReadOnlyFirst { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -58,11 +58,11 @@ public class ReadOnlyFirst { @ApiModelProperty(value = "") @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java index 88965911232..397df373ae6 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java @@ -30,7 +30,7 @@ public class ResponseObjectWithDifferentFieldNames { private @Nullable String propertyNameWithSpaces; - public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNames normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -42,15 +42,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -62,15 +62,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -82,15 +82,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -102,11 +102,11 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java index 593629fa083..0addee65b6e 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/SpecialModelName.java @@ -26,7 +26,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -38,11 +38,11 @@ public class SpecialModelName { @ApiModelProperty(value = "") @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Tag.java index 4e0d98c26d6..615b9a95371 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/Tag.java @@ -26,7 +26,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -38,15 +38,15 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -58,11 +58,11 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/User.java index 64c02c564b0..a83545f3047 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/User.java @@ -38,7 +38,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -50,15 +50,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -70,15 +70,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -90,15 +90,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -110,15 +110,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -130,15 +130,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -150,15 +150,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -170,15 +170,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -190,11 +190,11 @@ public class User { @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java index 8ad970eee35..9b7b6c2d660 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java @@ -93,7 +93,7 @@ public class XmlItem { @Valid private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -105,15 +105,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -125,15 +125,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -145,15 +145,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -165,11 +165,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -201,7 +201,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -213,15 +213,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -233,15 +233,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -253,15 +253,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -273,11 +273,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -337,7 +337,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -349,15 +349,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -369,15 +369,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -389,15 +389,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -409,11 +409,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -473,7 +473,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -485,15 +485,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -505,15 +505,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -525,15 +525,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -545,11 +545,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -609,7 +609,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -621,15 +621,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -641,15 +641,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -661,15 +661,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -681,11 +681,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java index 11b27787482..19216bce9fa 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.Client; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java index d247f03fcb0..ebc485579ca 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java @@ -21,6 +21,7 @@ import org.openapitools.model.XmlItem; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -98,7 +99,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterBooleanSerialize( - @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body + @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) @Nullable Boolean body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -130,7 +131,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterCompositeSerialize( - @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite outerComposite + @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) @Nullable OuterComposite outerComposite ) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -171,7 +172,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterNumberSerialize( - @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body + @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) @Nullable BigDecimal body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -203,7 +204,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -444,12 +445,12 @@ public interface FakeApi { ) default ResponseEntity testEnumParameters( - @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString ) { @@ -488,9 +489,9 @@ public interface FakeApi { @NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 888f4b118ab..ce0c01322a3 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.Client; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java index fe92a8d3cf2..65307e0d7ba 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java @@ -11,6 +11,7 @@ import java.util.Set; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -103,7 +104,7 @@ public interface PetApi { default ResponseEntity deletePet( @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId, - @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey + @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java index da1b1ec7186..4e10b2ec59d 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.Order; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java index 0448069b51b..d5689ca159c 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.User; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 25e7edc6691..773291ab5b9 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesAnyType { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index f64b28e8321..5e3b764af70 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesArray { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index d4ccb3cac52..c57bccf770d 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesBoolean { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 2edaa067d45..6fca551155d 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -284,7 +284,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -296,11 +296,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } @@ -324,7 +324,7 @@ public class AdditionalPropertiesClass { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -336,11 +336,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 4e023e5ac23..94a8cbcd6a6 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesInteger { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 4925911430d..ff57a4c1964 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesNumber { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 8271f56b65e..deeb9fdddd0 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesObject { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 2ee8c696843..8753cbaea4f 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesString { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java index 41f5fe09fc5..a66d6f16cdd 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java @@ -81,7 +81,7 @@ public class BigCat extends Cat { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -93,11 +93,11 @@ public class BigCat extends Cat { @ApiModelProperty(value = "") @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Capitalization.java index fd0137b5329..fd49ed0ccec 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Capitalization.java @@ -35,7 +35,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -47,15 +47,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -67,15 +67,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -87,15 +87,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -107,15 +107,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -127,15 +127,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -147,11 +147,11 @@ public class Capitalization { @ApiModelProperty(value = "Name of the pet ") @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Cat.java index 92dd5e2e1dd..521f353f732 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Cat.java @@ -49,7 +49,7 @@ public class Cat extends Animal { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -61,11 +61,11 @@ public class Cat extends Animal { @ApiModelProperty(value = "") @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Category.java index 98bde299616..4fda94ab15c 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Category.java @@ -38,7 +38,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public class Category { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ChildWithNullable.java index fc46285ac5e..9657b6cb28b 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -33,7 +33,7 @@ public class ChildWithNullable extends ParentWithNullable { private @Nullable String otherProperty; - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -45,11 +45,11 @@ public class ChildWithNullable extends ParentWithNullable { @ApiModelProperty(value = "") @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ClassModel.java index 4e03cee749d..e46e0267220 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ClassModel.java @@ -26,7 +26,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -38,11 +38,11 @@ public class ClassModel { @ApiModelProperty(value = "") @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Client.java index 3f16a03fdf6..133345b58de 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Client.java @@ -25,7 +25,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -37,11 +37,11 @@ public class Client { @ApiModelProperty(value = "") @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Dog.java index f9df4db3878..dc8dcaaac34 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Dog.java @@ -41,7 +41,7 @@ public class Dog extends Animal { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public class Dog extends Animal { @ApiModelProperty(value = "") @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumArrays.java index 9773ea49467..6a1419957ed 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumArrays.java @@ -102,7 +102,7 @@ public class EnumArrays { @Valid private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -114,11 +114,11 @@ public class EnumArrays { @ApiModelProperty(value = "") @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java index 61abd2bd5d4..2da9188ff1c 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java @@ -192,7 +192,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -232,7 +232,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -264,15 +264,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -284,11 +284,11 @@ public class EnumTest { @Valid @ApiModelProperty(value = "") @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/File.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/File.java index ed0112b13ad..f749c4954d5 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/File.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/File.java @@ -26,7 +26,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -38,11 +38,11 @@ public class File { @ApiModelProperty(value = "Test capitalization") @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 426e7f1f735..344b4ab1364 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -32,7 +32,7 @@ public class FileSchemaTestClass { @Valid private List<@Valid File> files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -44,11 +44,11 @@ public class FileSchemaTestClass { @Valid @ApiModelProperty(value = "") @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java index c59ee6475d1..a141053334f 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java @@ -75,7 +75,7 @@ public class FormatTest { this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public class FormatTest { @Min(10) @Max(100) @ApiModelProperty(value = "") @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -111,15 +111,15 @@ public class FormatTest { @Min(20) @Max(200) @ApiModelProperty(value = "") @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -131,11 +131,11 @@ public class FormatTest { @ApiModelProperty(value = "") @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -161,7 +161,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public class FormatTest { @DecimalMin("54.3") @DecimalMax("987.6") @ApiModelProperty(value = "") @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -197,15 +197,15 @@ public class FormatTest { @DecimalMin("67.8") @DecimalMax("123.4") @ApiModelProperty(value = "") @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -217,11 +217,11 @@ public class FormatTest { @Pattern(regexp = "/[a-z]/i") @ApiModelProperty(value = "") @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -245,7 +245,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -257,11 +257,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -285,7 +285,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -317,11 +317,11 @@ public class FormatTest { @Valid @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -345,7 +345,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index a706e796c8f..32df26a5329 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -29,7 +29,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -41,15 +41,15 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -61,11 +61,11 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 337dfa4d5de..dcc7a5b9165 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,7 +37,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -49,15 +49,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -69,11 +69,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Model200Response.java index 1dba298e44e..03a0d36c22b 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Model200Response.java @@ -30,7 +30,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -42,15 +42,15 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -62,11 +62,11 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelApiResponse.java index 6ba366ec528..a47a3421a48 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelList.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelList.java index dc06c29116f..cdc49aefdb5 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelList.java @@ -27,7 +27,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -39,11 +39,11 @@ public class ModelList { @ApiModelProperty(value = "") @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelReturn.java index 959ff9d7995..e23f9b70f1e 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ModelReturn.java @@ -28,7 +28,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -40,11 +40,11 @@ public class ModelReturn { @ApiModelProperty(value = "") @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Name.java index ce1f39d59bf..5708fa3147e 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Name.java @@ -63,7 +63,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -75,15 +75,15 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -95,15 +95,15 @@ public class Name { @ApiModelProperty(value = "") @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -115,11 +115,11 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/NumberOnly.java index 1660dd78600..99de5c65a70 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/NumberOnly.java @@ -26,7 +26,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -38,11 +38,11 @@ public class NumberOnly { @Valid @ApiModelProperty(value = "") @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Order.java index 713bb66964a..d2c42e403ab 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @ApiModelProperty(value = "Order Status") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterComposite.java index 59c8b16704a..e69df693bed 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/OuterComposite.java @@ -30,7 +30,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -42,15 +42,15 @@ public class OuterComposite { @Valid @ApiModelProperty(value = "") @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -62,15 +62,15 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -82,11 +82,11 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ParentWithNullable.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ParentWithNullable.java index 49238f51494..ef9877936a6 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ParentWithNullable.java @@ -76,7 +76,7 @@ public class ParentWithNullable { private JsonNullable nullableProperty = JsonNullable.undefined(); - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -88,11 +88,11 @@ public class ParentWithNullable { @ApiModelProperty(value = "") @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java index 54aa2170c78..901eec55257 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java @@ -96,7 +96,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -108,15 +108,15 @@ public class Pet { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -128,11 +128,11 @@ public class Pet { @Valid @ApiModelProperty(value = "") @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -213,7 +213,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -227,7 +227,7 @@ public class Pet { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -235,7 +235,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ReadOnlyFirst.java index ad83db00ffc..15329f8cb12 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -27,7 +27,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -39,15 +39,15 @@ public class ReadOnlyFirst { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -59,11 +59,11 @@ public class ReadOnlyFirst { @ApiModelProperty(value = "") @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java index 9f6a0d214d6..9002188cbf7 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java @@ -31,7 +31,7 @@ public class ResponseObjectWithDifferentFieldNames { private @Nullable String propertyNameWithSpaces; - public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNames normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -43,15 +43,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -63,15 +63,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -83,15 +83,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -103,11 +103,11 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/SpecialModelName.java index e13401f2a3b..5cda5fbc2ed 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/SpecialModelName.java @@ -27,7 +27,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -39,11 +39,11 @@ public class SpecialModelName { @ApiModelProperty(value = "") @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Tag.java index 8e03f47541a..0aa2038f01c 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/User.java index 1f4462a7cf4..2dbf6f2f0db 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java index 93db0d19fad..a5f92d54e90 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java @@ -94,7 +94,7 @@ public class XmlItem { @Valid private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -106,15 +106,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -126,15 +126,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -146,15 +146,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -166,11 +166,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -202,7 +202,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -234,15 +234,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -254,15 +254,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -274,11 +274,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -338,7 +338,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -370,15 +370,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -390,15 +390,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -410,11 +410,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -474,7 +474,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -506,15 +506,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -526,15 +526,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -546,11 +546,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -610,7 +610,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -642,15 +642,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -662,15 +662,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -682,11 +682,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/AnotherFakeApi.java index 7cd95b69335..9de4f1c7ef6 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.Client; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/FakeApi.java index dd96471acbf..95a884fc07b 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/FakeApi.java @@ -21,6 +21,7 @@ import org.openapitools.model.XmlItem; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; @@ -98,7 +99,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterBooleanSerialize( - @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body + @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) @Nullable Boolean body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -130,7 +131,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterCompositeSerialize( - @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite outerComposite + @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) @Nullable OuterComposite outerComposite ) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -171,7 +172,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterNumberSerialize( - @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body + @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) @Nullable BigDecimal body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -203,7 +204,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -444,12 +445,12 @@ public interface FakeApi { ) default ResponseEntity testEnumParameters( - @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString ) { @@ -488,9 +489,9 @@ public interface FakeApi { @NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index ea562b5e2fa..d3172d8d530 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.Client; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/PetApi.java index af816afa9f6..3565d4bbb1a 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/PetApi.java @@ -11,6 +11,7 @@ import java.util.Set; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; @@ -103,7 +104,7 @@ public interface PetApi { default ResponseEntity deletePet( @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId, - @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey + @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/StoreApi.java index c86280efdc1..96185fd64c5 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/StoreApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.Order; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/UserApi.java index 5e19bcf3db4..5cb73000ed4 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/UserApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.User; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 25e7edc6691..773291ab5b9 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesAnyType { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index f64b28e8321..5e3b764af70 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesArray { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index d4ccb3cac52..c57bccf770d 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesBoolean { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 2edaa067d45..6fca551155d 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -284,7 +284,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -296,11 +296,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } @@ -324,7 +324,7 @@ public class AdditionalPropertiesClass { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -336,11 +336,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 4e023e5ac23..94a8cbcd6a6 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesInteger { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 4925911430d..ff57a4c1964 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesNumber { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 8271f56b65e..deeb9fdddd0 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesObject { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 2ee8c696843..8753cbaea4f 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesString { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/BigCat.java index 41f5fe09fc5..a66d6f16cdd 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/BigCat.java @@ -81,7 +81,7 @@ public class BigCat extends Cat { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -93,11 +93,11 @@ public class BigCat extends Cat { @ApiModelProperty(value = "") @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Capitalization.java index fd0137b5329..fd49ed0ccec 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Capitalization.java @@ -35,7 +35,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -47,15 +47,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -67,15 +67,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -87,15 +87,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -107,15 +107,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -127,15 +127,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -147,11 +147,11 @@ public class Capitalization { @ApiModelProperty(value = "Name of the pet ") @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Cat.java index 92dd5e2e1dd..521f353f732 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Cat.java @@ -49,7 +49,7 @@ public class Cat extends Animal { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -61,11 +61,11 @@ public class Cat extends Animal { @ApiModelProperty(value = "") @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Category.java index 98bde299616..4fda94ab15c 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Category.java @@ -38,7 +38,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public class Category { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ChildWithNullable.java index fc46285ac5e..9657b6cb28b 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -33,7 +33,7 @@ public class ChildWithNullable extends ParentWithNullable { private @Nullable String otherProperty; - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -45,11 +45,11 @@ public class ChildWithNullable extends ParentWithNullable { @ApiModelProperty(value = "") @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ClassModel.java index 4e03cee749d..e46e0267220 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ClassModel.java @@ -26,7 +26,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -38,11 +38,11 @@ public class ClassModel { @ApiModelProperty(value = "") @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Client.java index 3f16a03fdf6..133345b58de 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Client.java @@ -25,7 +25,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -37,11 +37,11 @@ public class Client { @ApiModelProperty(value = "") @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Dog.java index f9df4db3878..dc8dcaaac34 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Dog.java @@ -41,7 +41,7 @@ public class Dog extends Animal { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public class Dog extends Animal { @ApiModelProperty(value = "") @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/EnumArrays.java index 9773ea49467..6a1419957ed 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/EnumArrays.java @@ -102,7 +102,7 @@ public class EnumArrays { @Valid private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -114,11 +114,11 @@ public class EnumArrays { @ApiModelProperty(value = "") @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/EnumTest.java index 61abd2bd5d4..2da9188ff1c 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/EnumTest.java @@ -192,7 +192,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -232,7 +232,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -264,15 +264,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -284,11 +284,11 @@ public class EnumTest { @Valid @ApiModelProperty(value = "") @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/File.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/File.java index ed0112b13ad..f749c4954d5 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/File.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/File.java @@ -26,7 +26,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -38,11 +38,11 @@ public class File { @ApiModelProperty(value = "Test capitalization") @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 426e7f1f735..344b4ab1364 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -32,7 +32,7 @@ public class FileSchemaTestClass { @Valid private List<@Valid File> files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -44,11 +44,11 @@ public class FileSchemaTestClass { @Valid @ApiModelProperty(value = "") @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/FormatTest.java index c59ee6475d1..a141053334f 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/FormatTest.java @@ -75,7 +75,7 @@ public class FormatTest { this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public class FormatTest { @Min(10) @Max(100) @ApiModelProperty(value = "") @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -111,15 +111,15 @@ public class FormatTest { @Min(20) @Max(200) @ApiModelProperty(value = "") @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -131,11 +131,11 @@ public class FormatTest { @ApiModelProperty(value = "") @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -161,7 +161,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public class FormatTest { @DecimalMin("54.3") @DecimalMax("987.6") @ApiModelProperty(value = "") @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -197,15 +197,15 @@ public class FormatTest { @DecimalMin("67.8") @DecimalMax("123.4") @ApiModelProperty(value = "") @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -217,11 +217,11 @@ public class FormatTest { @Pattern(regexp = "/[a-z]/i") @ApiModelProperty(value = "") @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -245,7 +245,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -257,11 +257,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -285,7 +285,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -317,11 +317,11 @@ public class FormatTest { @Valid @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -345,7 +345,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index a706e796c8f..32df26a5329 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -29,7 +29,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -41,15 +41,15 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -61,11 +61,11 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 337dfa4d5de..dcc7a5b9165 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,7 +37,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -49,15 +49,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -69,11 +69,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Model200Response.java index 1dba298e44e..03a0d36c22b 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Model200Response.java @@ -30,7 +30,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -42,15 +42,15 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -62,11 +62,11 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ModelApiResponse.java index 6ba366ec528..a47a3421a48 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ModelList.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ModelList.java index dc06c29116f..cdc49aefdb5 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ModelList.java @@ -27,7 +27,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -39,11 +39,11 @@ public class ModelList { @ApiModelProperty(value = "") @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ModelReturn.java index 959ff9d7995..e23f9b70f1e 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ModelReturn.java @@ -28,7 +28,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -40,11 +40,11 @@ public class ModelReturn { @ApiModelProperty(value = "") @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Name.java index ce1f39d59bf..5708fa3147e 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Name.java @@ -63,7 +63,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -75,15 +75,15 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -95,15 +95,15 @@ public class Name { @ApiModelProperty(value = "") @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -115,11 +115,11 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/NumberOnly.java index 1660dd78600..99de5c65a70 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/NumberOnly.java @@ -26,7 +26,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -38,11 +38,11 @@ public class NumberOnly { @Valid @ApiModelProperty(value = "") @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Order.java index 713bb66964a..d2c42e403ab 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @ApiModelProperty(value = "Order Status") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/OuterComposite.java index 59c8b16704a..e69df693bed 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/OuterComposite.java @@ -30,7 +30,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -42,15 +42,15 @@ public class OuterComposite { @Valid @ApiModelProperty(value = "") @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -62,15 +62,15 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -82,11 +82,11 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ParentWithNullable.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ParentWithNullable.java index 49238f51494..ef9877936a6 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ParentWithNullable.java @@ -76,7 +76,7 @@ public class ParentWithNullable { private JsonNullable nullableProperty = JsonNullable.undefined(); - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -88,11 +88,11 @@ public class ParentWithNullable { @ApiModelProperty(value = "") @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Pet.java index 54aa2170c78..901eec55257 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Pet.java @@ -96,7 +96,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -108,15 +108,15 @@ public class Pet { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -128,11 +128,11 @@ public class Pet { @Valid @ApiModelProperty(value = "") @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -213,7 +213,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -227,7 +227,7 @@ public class Pet { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -235,7 +235,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ReadOnlyFirst.java index ad83db00ffc..15329f8cb12 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -27,7 +27,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -39,15 +39,15 @@ public class ReadOnlyFirst { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -59,11 +59,11 @@ public class ReadOnlyFirst { @ApiModelProperty(value = "") @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java index 9f6a0d214d6..9002188cbf7 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java @@ -31,7 +31,7 @@ public class ResponseObjectWithDifferentFieldNames { private @Nullable String propertyNameWithSpaces; - public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNames normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -43,15 +43,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -63,15 +63,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -83,15 +83,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -103,11 +103,11 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/SpecialModelName.java index e13401f2a3b..5cda5fbc2ed 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/SpecialModelName.java @@ -27,7 +27,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -39,11 +39,11 @@ public class SpecialModelName { @ApiModelProperty(value = "") @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Tag.java index 8e03f47541a..0aa2038f01c 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/User.java index 1f4462a7cf4..2dbf6f2f0db 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/XmlItem.java index 93db0d19fad..a5f92d54e90 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/XmlItem.java @@ -94,7 +94,7 @@ public class XmlItem { @Valid private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -106,15 +106,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -126,15 +126,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -146,15 +146,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -166,11 +166,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -202,7 +202,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -234,15 +234,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -254,15 +254,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -274,11 +274,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -338,7 +338,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -370,15 +370,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -390,15 +390,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -410,11 +410,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -474,7 +474,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -506,15 +506,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -526,15 +526,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -546,11 +546,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -610,7 +610,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -642,15 +642,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -662,15 +662,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -682,11 +682,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index b12eecd4219..de855c79892 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.Client; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java index b082ac0b8d4..32ce81eef4d 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java @@ -4,6 +4,7 @@ import org.openapitools.model.Client; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java index 22116bd3678..a1b7e13525d 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -19,6 +19,7 @@ import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -93,7 +94,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterBooleanSerialize( - @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body + @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) @Nullable Boolean body ) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -124,7 +125,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterCompositeSerialize( - @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite outerComposite + @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) @Nullable OuterComposite outerComposite ) { return getDelegate().fakeOuterCompositeSerialize(outerComposite); } @@ -155,7 +156,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterNumberSerialize( - @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body + @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) @Nullable BigDecimal body ) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -186,7 +187,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body ) { return getDelegate().fakeOuterStringSerialize(body); } @@ -403,12 +404,12 @@ public interface FakeApi { ) default ResponseEntity testEnumParameters( - @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString ) { @@ -446,9 +447,9 @@ public interface FakeApi { @NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java index 5b89daf88ca..32ead027eec 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -16,6 +16,7 @@ import org.openapitools.model.XmlItem; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index cdc9f39a060..da6161153e5 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.Client; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java index 22dd9512aac..5a1b775fcaf 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java @@ -4,6 +4,7 @@ import org.openapitools.model.Client; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java index e6f6e532cbd..0a46d75a438 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.Pet; import java.util.Set; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -98,7 +99,7 @@ public interface PetApi { default ResponseEntity deletePet( @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId, - @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey + @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return getDelegate().deletePet(petId, apiKey); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApiDelegate.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApiDelegate.java index 451bf4bad63..71080a04d77 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApiDelegate.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApiDelegate.java @@ -6,6 +6,7 @@ import java.util.Set; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java index b841658ad20..a621a1a8b6b 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.util.Map; import org.openapitools.model.Order; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApiDelegate.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApiDelegate.java index 014f9eec9ab..00289908529 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApiDelegate.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApiDelegate.java @@ -5,6 +5,7 @@ import org.openapitools.model.Order; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java index f5f2f423867..f7c36f6e665 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.time.OffsetDateTime; import org.openapitools.model.User; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApiDelegate.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApiDelegate.java index 8a8222c1332..56c0b57370b 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApiDelegate.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApiDelegate.java @@ -5,6 +5,7 @@ import org.openapitools.model.User; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 25e7edc6691..773291ab5b9 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesAnyType { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index f64b28e8321..5e3b764af70 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesArray { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index d4ccb3cac52..c57bccf770d 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesBoolean { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 2edaa067d45..6fca551155d 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -284,7 +284,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -296,11 +296,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } @@ -324,7 +324,7 @@ public class AdditionalPropertiesClass { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -336,11 +336,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 4e023e5ac23..94a8cbcd6a6 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesInteger { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 4925911430d..ff57a4c1964 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesNumber { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 8271f56b65e..deeb9fdddd0 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesObject { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 2ee8c696843..8753cbaea4f 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesString { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java index 41f5fe09fc5..a66d6f16cdd 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java @@ -81,7 +81,7 @@ public class BigCat extends Cat { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -93,11 +93,11 @@ public class BigCat extends Cat { @ApiModelProperty(value = "") @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Capitalization.java index fd0137b5329..fd49ed0ccec 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Capitalization.java @@ -35,7 +35,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -47,15 +47,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -67,15 +67,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -87,15 +87,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -107,15 +107,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -127,15 +127,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -147,11 +147,11 @@ public class Capitalization { @ApiModelProperty(value = "Name of the pet ") @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Cat.java index 92dd5e2e1dd..521f353f732 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Cat.java @@ -49,7 +49,7 @@ public class Cat extends Animal { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -61,11 +61,11 @@ public class Cat extends Animal { @ApiModelProperty(value = "") @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Category.java index 98bde299616..4fda94ab15c 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Category.java @@ -38,7 +38,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public class Category { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ChildWithNullable.java index fc46285ac5e..9657b6cb28b 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -33,7 +33,7 @@ public class ChildWithNullable extends ParentWithNullable { private @Nullable String otherProperty; - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -45,11 +45,11 @@ public class ChildWithNullable extends ParentWithNullable { @ApiModelProperty(value = "") @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ClassModel.java index 4e03cee749d..e46e0267220 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ClassModel.java @@ -26,7 +26,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -38,11 +38,11 @@ public class ClassModel { @ApiModelProperty(value = "") @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Client.java index 3f16a03fdf6..133345b58de 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Client.java @@ -25,7 +25,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -37,11 +37,11 @@ public class Client { @ApiModelProperty(value = "") @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Dog.java index f9df4db3878..dc8dcaaac34 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Dog.java @@ -41,7 +41,7 @@ public class Dog extends Animal { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public class Dog extends Animal { @ApiModelProperty(value = "") @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumArrays.java index 9773ea49467..6a1419957ed 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumArrays.java @@ -102,7 +102,7 @@ public class EnumArrays { @Valid private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -114,11 +114,11 @@ public class EnumArrays { @ApiModelProperty(value = "") @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java index 61abd2bd5d4..2da9188ff1c 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java @@ -192,7 +192,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -232,7 +232,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -264,15 +264,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -284,11 +284,11 @@ public class EnumTest { @Valid @ApiModelProperty(value = "") @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/File.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/File.java index ed0112b13ad..f749c4954d5 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/File.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/File.java @@ -26,7 +26,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -38,11 +38,11 @@ public class File { @ApiModelProperty(value = "Test capitalization") @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 426e7f1f735..344b4ab1364 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -32,7 +32,7 @@ public class FileSchemaTestClass { @Valid private List<@Valid File> files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -44,11 +44,11 @@ public class FileSchemaTestClass { @Valid @ApiModelProperty(value = "") @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java index c59ee6475d1..a141053334f 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java @@ -75,7 +75,7 @@ public class FormatTest { this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public class FormatTest { @Min(10) @Max(100) @ApiModelProperty(value = "") @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -111,15 +111,15 @@ public class FormatTest { @Min(20) @Max(200) @ApiModelProperty(value = "") @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -131,11 +131,11 @@ public class FormatTest { @ApiModelProperty(value = "") @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -161,7 +161,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public class FormatTest { @DecimalMin("54.3") @DecimalMax("987.6") @ApiModelProperty(value = "") @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -197,15 +197,15 @@ public class FormatTest { @DecimalMin("67.8") @DecimalMax("123.4") @ApiModelProperty(value = "") @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -217,11 +217,11 @@ public class FormatTest { @Pattern(regexp = "/[a-z]/i") @ApiModelProperty(value = "") @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -245,7 +245,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -257,11 +257,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -285,7 +285,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -317,11 +317,11 @@ public class FormatTest { @Valid @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -345,7 +345,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index a706e796c8f..32df26a5329 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -29,7 +29,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -41,15 +41,15 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -61,11 +61,11 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 337dfa4d5de..dcc7a5b9165 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,7 +37,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -49,15 +49,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -69,11 +69,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Model200Response.java index 1dba298e44e..03a0d36c22b 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Model200Response.java @@ -30,7 +30,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -42,15 +42,15 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -62,11 +62,11 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelApiResponse.java index 6ba366ec528..a47a3421a48 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelList.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelList.java index dc06c29116f..cdc49aefdb5 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelList.java @@ -27,7 +27,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -39,11 +39,11 @@ public class ModelList { @ApiModelProperty(value = "") @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelReturn.java index 959ff9d7995..e23f9b70f1e 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ModelReturn.java @@ -28,7 +28,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -40,11 +40,11 @@ public class ModelReturn { @ApiModelProperty(value = "") @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Name.java index ce1f39d59bf..5708fa3147e 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Name.java @@ -63,7 +63,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -75,15 +75,15 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -95,15 +95,15 @@ public class Name { @ApiModelProperty(value = "") @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -115,11 +115,11 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/NumberOnly.java index 1660dd78600..99de5c65a70 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/NumberOnly.java @@ -26,7 +26,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -38,11 +38,11 @@ public class NumberOnly { @Valid @ApiModelProperty(value = "") @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Order.java index 713bb66964a..d2c42e403ab 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @ApiModelProperty(value = "Order Status") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterComposite.java index 59c8b16704a..e69df693bed 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/OuterComposite.java @@ -30,7 +30,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -42,15 +42,15 @@ public class OuterComposite { @Valid @ApiModelProperty(value = "") @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -62,15 +62,15 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -82,11 +82,11 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ParentWithNullable.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ParentWithNullable.java index 49238f51494..ef9877936a6 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ParentWithNullable.java @@ -76,7 +76,7 @@ public class ParentWithNullable { private JsonNullable nullableProperty = JsonNullable.undefined(); - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -88,11 +88,11 @@ public class ParentWithNullable { @ApiModelProperty(value = "") @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java index 54aa2170c78..901eec55257 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java @@ -96,7 +96,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -108,15 +108,15 @@ public class Pet { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -128,11 +128,11 @@ public class Pet { @Valid @ApiModelProperty(value = "") @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -213,7 +213,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -227,7 +227,7 @@ public class Pet { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -235,7 +235,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java index ad83db00ffc..15329f8cb12 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -27,7 +27,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -39,15 +39,15 @@ public class ReadOnlyFirst { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -59,11 +59,11 @@ public class ReadOnlyFirst { @ApiModelProperty(value = "") @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java index 9f6a0d214d6..9002188cbf7 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java @@ -31,7 +31,7 @@ public class ResponseObjectWithDifferentFieldNames { private @Nullable String propertyNameWithSpaces; - public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNames normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -43,15 +43,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -63,15 +63,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -83,15 +83,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -103,11 +103,11 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/SpecialModelName.java index e13401f2a3b..5cda5fbc2ed 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/SpecialModelName.java @@ -27,7 +27,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -39,11 +39,11 @@ public class SpecialModelName { @ApiModelProperty(value = "") @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Tag.java index 8e03f47541a..0aa2038f01c 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/User.java index 1f4462a7cf4..2dbf6f2f0db 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java index 93db0d19fad..a5f92d54e90 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java @@ -94,7 +94,7 @@ public class XmlItem { @Valid private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -106,15 +106,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -126,15 +126,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -146,15 +146,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -166,11 +166,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -202,7 +202,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -234,15 +234,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -254,15 +254,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -274,11 +274,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -338,7 +338,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -370,15 +370,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -390,15 +390,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -410,11 +410,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -474,7 +474,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -506,15 +506,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -526,15 +526,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -546,11 +546,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -610,7 +610,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -642,15 +642,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -662,15 +662,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -682,11 +682,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/PetApi.java index 71425f04440..e3e1ad8651e 100644 --- a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/PetApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import org.openapitools.model.ModelApiResponse; import org.openapitools.model.Pet; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.HttpStatus; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -99,7 +100,7 @@ public interface PetApi { default void deletePet( @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId, - @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey + @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { getDelegate().deletePet(petId, apiKey); } diff --git a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/PetApiDelegate.java b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/PetApiDelegate.java index 8e117ef00d0..4754082716a 100644 --- a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/PetApiDelegate.java +++ b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/PetApiDelegate.java @@ -4,6 +4,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.Pet; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/StoreApi.java index e74cbba9367..c6f24e72855 100644 --- a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/StoreApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.util.Map; import org.openapitools.model.Order; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.HttpStatus; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/StoreApiDelegate.java b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/StoreApiDelegate.java index f55fdf42f06..63bb53218ef 100644 --- a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/StoreApiDelegate.java +++ b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/StoreApiDelegate.java @@ -4,6 +4,7 @@ import java.util.Map; import org.openapitools.model.Order; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/UserApi.java index 51cd6729bf6..7f17fc4e66e 100644 --- a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/UserApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.time.OffsetDateTime; import org.openapitools.model.User; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.HttpStatus; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/UserApiDelegate.java b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/UserApiDelegate.java index 01120bd81f8..b6e24d32a97 100644 --- a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/UserApiDelegate.java +++ b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/api/UserApiDelegate.java @@ -4,6 +4,7 @@ import java.time.OffsetDateTime; import org.openapitools.model.User; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/Category.java index d592426fd33..2ec3e3160af 100644 --- a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/Category.java @@ -28,7 +28,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -40,15 +40,15 @@ public class Category { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -60,11 +60,11 @@ public class Category { @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/ModelApiResponse.java index 15d6da4ff22..7716612070f 100644 --- a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -32,7 +32,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -44,15 +44,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -64,15 +64,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -84,11 +84,11 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/Order.java index b01430954d1..dcb0f8b3b2c 100644 --- a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/Order.java @@ -77,7 +77,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -89,15 +89,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -109,15 +109,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -129,15 +129,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -149,15 +149,15 @@ public class Order { @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -169,11 +169,11 @@ public class Order { @ApiModelProperty(value = "Order Status") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/Pet.java index d9d967eceda..1c653622765 100644 --- a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/Pet.java @@ -94,7 +94,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -106,15 +106,15 @@ public class Pet { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -126,11 +126,11 @@ public class Pet { @Valid @ApiModelProperty(value = "") @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -210,7 +210,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -224,7 +224,7 @@ public class Pet { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -232,7 +232,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/Tag.java index 76c7c984abc..63bee335e33 100644 --- a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/Tag.java @@ -28,7 +28,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -40,15 +40,15 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -60,11 +60,11 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/User.java index 68e44185f3f..e4214f70a6a 100644 --- a/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-delegate-no-response-entity/src/main/java/org/openapitools/model/User.java @@ -40,7 +40,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -52,15 +52,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -72,15 +72,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -92,15 +92,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -112,15 +112,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -132,15 +132,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -152,15 +152,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -172,15 +172,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -192,11 +192,11 @@ public class User { @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java index b12eecd4219..de855c79892 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.Client; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java index b082ac0b8d4..32ce81eef4d 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java @@ -4,6 +4,7 @@ import org.openapitools.model.Client; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java index 22116bd3678..a1b7e13525d 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java @@ -19,6 +19,7 @@ import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -93,7 +94,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterBooleanSerialize( - @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body + @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) @Nullable Boolean body ) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -124,7 +125,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterCompositeSerialize( - @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite outerComposite + @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) @Nullable OuterComposite outerComposite ) { return getDelegate().fakeOuterCompositeSerialize(outerComposite); } @@ -155,7 +156,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterNumberSerialize( - @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body + @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) @Nullable BigDecimal body ) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -186,7 +187,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body ) { return getDelegate().fakeOuterStringSerialize(body); } @@ -403,12 +404,12 @@ public interface FakeApi { ) default ResponseEntity testEnumParameters( - @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString ) { @@ -446,9 +447,9 @@ public interface FakeApi { @NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java index 5b89daf88ca..32ead027eec 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -16,6 +16,7 @@ import org.openapitools.model.XmlItem; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index cdc9f39a060..da6161153e5 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.Client; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java index 22dd9512aac..5a1b775fcaf 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java @@ -4,6 +4,7 @@ import org.openapitools.model.Client; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java index e6f6e532cbd..0a46d75a438 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.Pet; import java.util.Set; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -98,7 +99,7 @@ public interface PetApi { default ResponseEntity deletePet( @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId, - @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey + @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return getDelegate().deletePet(petId, apiKey); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApiDelegate.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApiDelegate.java index 451bf4bad63..71080a04d77 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApiDelegate.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApiDelegate.java @@ -6,6 +6,7 @@ import java.util.Set; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java index b841658ad20..a621a1a8b6b 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.util.Map; import org.openapitools.model.Order; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApiDelegate.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApiDelegate.java index 014f9eec9ab..00289908529 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApiDelegate.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApiDelegate.java @@ -5,6 +5,7 @@ import org.openapitools.model.Order; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java index f5f2f423867..f7c36f6e665 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.time.OffsetDateTime; import org.openapitools.model.User; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApiDelegate.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApiDelegate.java index 8a8222c1332..56c0b57370b 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApiDelegate.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApiDelegate.java @@ -5,6 +5,7 @@ import org.openapitools.model.User; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 903e92ae093..0690e94af2f 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -40,7 +40,7 @@ public class AdditionalPropertiesAnyType { this.name = name; } - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -52,11 +52,11 @@ public class AdditionalPropertiesAnyType { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index f5994ebe50f..979a84b8947 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -41,7 +41,7 @@ public class AdditionalPropertiesArray { this.name = name; } - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -53,11 +53,11 @@ public class AdditionalPropertiesArray { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 62ee336a41a..b97a2e7581c 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -40,7 +40,7 @@ public class AdditionalPropertiesBoolean { this.name = name; } - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -52,11 +52,11 @@ public class AdditionalPropertiesBoolean { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index f179805ae6a..d4ab2a60be8 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -305,7 +305,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -317,11 +317,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } @@ -345,7 +345,7 @@ public class AdditionalPropertiesClass { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -357,11 +357,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 84b7ac34691..e762f2f010f 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -40,7 +40,7 @@ public class AdditionalPropertiesInteger { this.name = name; } - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -52,11 +52,11 @@ public class AdditionalPropertiesInteger { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 4ea6585da0c..f5563a5c5f2 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -41,7 +41,7 @@ public class AdditionalPropertiesNumber { this.name = name; } - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -53,11 +53,11 @@ public class AdditionalPropertiesNumber { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index a7b64c53cb3..35573e3e9a2 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -41,7 +41,7 @@ public class AdditionalPropertiesObject { this.name = name; } - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -53,11 +53,11 @@ public class AdditionalPropertiesObject { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 0138b18c60f..3fef1530194 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -40,7 +40,7 @@ public class AdditionalPropertiesString { this.name = name; } - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -52,11 +52,11 @@ public class AdditionalPropertiesString { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java index 4bbd1409a58..aff2bbc038c 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java @@ -89,7 +89,7 @@ public class BigCat extends Cat { this.kind = kind; } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -101,11 +101,11 @@ public class BigCat extends Cat { @ApiModelProperty(value = "") @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java index 6fd9748ac04..0cbc3401089 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Capitalization.java @@ -51,7 +51,7 @@ public class Capitalization { this.ATT_NAME = ATT_NAME; } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -63,15 +63,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -83,15 +83,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -103,15 +103,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -123,15 +123,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -143,15 +143,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -163,11 +163,11 @@ public class Capitalization { @ApiModelProperty(value = "Name of the pet ") @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java index eb392c50e3a..63c25f73e67 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Cat.java @@ -57,7 +57,7 @@ public class Cat extends Animal { this.declawed = declawed; } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -69,11 +69,11 @@ public class Cat extends Animal { @ApiModelProperty(value = "") @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java index f8de73020a7..46c7c4cac56 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Category.java @@ -46,7 +46,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -58,11 +58,11 @@ public class Category { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ChildWithNullable.java index c021fc62407..c7d2bf8d53d 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -45,7 +45,7 @@ public class ChildWithNullable extends ParentWithNullable { this.otherProperty = otherProperty; } - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -57,11 +57,11 @@ public class ChildWithNullable extends ParentWithNullable { @ApiModelProperty(value = "") @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java index 11b10ffae5f..e8474846b99 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ClassModel.java @@ -37,7 +37,7 @@ public class ClassModel { this.propertyClass = propertyClass; } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -49,11 +49,11 @@ public class ClassModel { @ApiModelProperty(value = "") @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java index 418829a86d1..a5779818687 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Client.java @@ -36,7 +36,7 @@ public class Client { this.client = client; } - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -48,11 +48,11 @@ public class Client { @ApiModelProperty(value = "") @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java index 9d7df1bf534..72ce4db5034 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Dog.java @@ -49,7 +49,7 @@ public class Dog extends Animal { this.breed = breed; } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -61,11 +61,11 @@ public class Dog extends Animal { @ApiModelProperty(value = "") @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java index 194fcb88c1c..1f06667a549 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumArrays.java @@ -114,7 +114,7 @@ public class EnumArrays { this.arrayEnum = arrayEnum; } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -126,11 +126,11 @@ public class EnumArrays { @ApiModelProperty(value = "") @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java index 38206ad73fa..d018ad78a29 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java @@ -203,7 +203,7 @@ public class EnumTest { this.outerEnum = outerEnum; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -215,11 +215,11 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -243,7 +243,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -255,15 +255,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -275,15 +275,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -295,11 +295,11 @@ public class EnumTest { @Valid @ApiModelProperty(value = "") @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/File.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/File.java index 2ae05780f2d..19c8658a2ff 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/File.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/File.java @@ -37,7 +37,7 @@ public class File { this.sourceURI = sourceURI; } - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -49,11 +49,11 @@ public class File { @ApiModelProperty(value = "Test capitalization") @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 9e7bf6d6063..00c238671a6 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -44,7 +44,7 @@ public class FileSchemaTestClass { this.files = files; } - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -56,11 +56,11 @@ public class FileSchemaTestClass { @Valid @ApiModelProperty(value = "") @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java index fe18db1e6bf..674258d992d 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java @@ -95,7 +95,7 @@ public class FormatTest { this.bigDecimal = bigDecimal; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -109,15 +109,15 @@ public class FormatTest { @Min(10) @Max(100) @ApiModelProperty(value = "") @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -131,15 +131,15 @@ public class FormatTest { @Min(20) @Max(200) @ApiModelProperty(value = "") @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -151,11 +151,11 @@ public class FormatTest { @ApiModelProperty(value = "") @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -181,7 +181,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -195,15 +195,15 @@ public class FormatTest { @DecimalMin("54.3") @DecimalMax("987.6") @ApiModelProperty(value = "") @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -217,15 +217,15 @@ public class FormatTest { @DecimalMin("67.8") @DecimalMax("123.4") @ApiModelProperty(value = "") @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -237,11 +237,11 @@ public class FormatTest { @Pattern(regexp = "/[a-z]/i") @ApiModelProperty(value = "") @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -265,7 +265,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -277,11 +277,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -305,7 +305,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -317,15 +317,15 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -337,11 +337,11 @@ public class FormatTest { @Valid @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -365,7 +365,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -377,11 +377,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index e7857f93331..456a88ad978 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -41,7 +41,7 @@ public class HasOnlyReadOnly { this.foo = foo; } - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -53,15 +53,15 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -73,11 +73,11 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index cda9da53132..a5e287950b3 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -50,7 +50,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { this.map = map; } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -62,15 +62,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -82,11 +82,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java index 2acc5c47238..a0e0e892c9b 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Model200Response.java @@ -42,7 +42,7 @@ public class Model200Response { this.propertyClass = propertyClass; } - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -54,15 +54,15 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -74,11 +74,11 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java index 467bf952f84..4a9fea8748e 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -44,7 +44,7 @@ public class ModelApiResponse { this.message = message; } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -56,15 +56,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -76,15 +76,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -96,11 +96,11 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelList.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelList.java index 253d4253254..fd97d1a7804 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelList.java @@ -38,7 +38,7 @@ public class ModelList { this._123list = _123list; } - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -50,11 +50,11 @@ public class ModelList { @ApiModelProperty(value = "") @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java index 12774d6b605..f6b44aca344 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ModelReturn.java @@ -39,7 +39,7 @@ public class ModelReturn { this._return = _return; } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -51,11 +51,11 @@ public class ModelReturn { @ApiModelProperty(value = "") @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java index 8af038c75cf..2c1a099aace 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Name.java @@ -73,7 +73,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -85,15 +85,15 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -105,15 +105,15 @@ public class Name { @ApiModelProperty(value = "") @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -125,11 +125,11 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java index 877709bc4cb..031eb8e82be 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/NumberOnly.java @@ -37,7 +37,7 @@ public class NumberOnly { this.justNumber = justNumber; } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -49,11 +49,11 @@ public class NumberOnly { @Valid @ApiModelProperty(value = "") @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java index 7e97e4ff176..8c3bddb62e1 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Order.java @@ -92,7 +92,7 @@ public class Order { this.complete = complete; } - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -104,15 +104,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -124,15 +124,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -144,15 +144,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -164,15 +164,15 @@ public class Order { @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -184,11 +184,11 @@ public class Order { @ApiModelProperty(value = "Order Status") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java index 8d9c0d6a44f..b7fb15d8b10 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/OuterComposite.java @@ -43,7 +43,7 @@ public class OuterComposite { this.myBoolean = myBoolean; } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -55,15 +55,15 @@ public class OuterComposite { @Valid @ApiModelProperty(value = "") @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -75,15 +75,15 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -95,11 +95,11 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ParentWithNullable.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ParentWithNullable.java index 6ed19ef3489..3260c5b5725 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ParentWithNullable.java @@ -88,7 +88,7 @@ public class ParentWithNullable { this.nullableProperty = JsonNullable.of(nullableProperty); } - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -100,11 +100,11 @@ public class ParentWithNullable { @ApiModelProperty(value = "") @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java index a952a87c257..8df6168c984 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java @@ -108,7 +108,7 @@ public class Pet { this.status = status; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -120,15 +120,15 @@ public class Pet { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -140,11 +140,11 @@ public class Pet { @Valid @ApiModelProperty(value = "") @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -225,7 +225,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -239,7 +239,7 @@ public class Pet { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -247,7 +247,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 06fa26e55d9..73732ea6f32 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -39,7 +39,7 @@ public class ReadOnlyFirst { this.baz = baz; } - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -51,15 +51,15 @@ public class ReadOnlyFirst { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -71,11 +71,11 @@ public class ReadOnlyFirst { @ApiModelProperty(value = "") @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java index 0d8d86f73a1..f3625a7f377 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java @@ -45,7 +45,7 @@ public class ResponseObjectWithDifferentFieldNames { this.propertyNameWithSpaces = propertyNameWithSpaces; } - public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNames normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -57,15 +57,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -77,15 +77,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -97,15 +97,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -117,11 +117,11 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java index ee897fa52af..194278e3507 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/SpecialModelName.java @@ -38,7 +38,7 @@ public class SpecialModelName { this.$specialPropertyName = $specialPropertyName; } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -50,11 +50,11 @@ public class SpecialModelName { @ApiModelProperty(value = "") @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java index 0be421ec804..b00a85d4472 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Tag.java @@ -39,7 +39,7 @@ public class Tag { this.name = name; } - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -71,11 +71,11 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java index c60254f13c3..8fc13478bd1 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/User.java @@ -57,7 +57,7 @@ public class User { this.userStatus = userStatus; } - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -69,15 +69,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -89,15 +89,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -109,15 +109,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -129,15 +129,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -149,15 +149,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -169,15 +169,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -189,15 +189,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -209,11 +209,11 @@ public class User { @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java index ec18d1486f2..4f831405a58 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java @@ -133,7 +133,7 @@ public class XmlItem { this.prefixNsWrappedArray = prefixNsWrappedArray; } - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -145,15 +145,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -165,15 +165,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -185,15 +185,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -205,11 +205,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -241,7 +241,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -253,15 +253,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -273,15 +273,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -293,15 +293,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -313,11 +313,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -377,7 +377,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -389,15 +389,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -409,15 +409,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -429,15 +429,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -449,11 +449,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -513,7 +513,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -525,15 +525,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -545,15 +545,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -565,15 +565,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -585,11 +585,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -649,7 +649,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -661,15 +661,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -681,15 +681,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -701,15 +701,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -721,11 +721,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/server/petstore/springboot-file-delegate-optional/src/main/java/org/openapitools/api/DummyApi.java b/samples/server/petstore/springboot-file-delegate-optional/src/main/java/org/openapitools/api/DummyApi.java index cdddd2f0af9..8d5d18ae539 100644 --- a/samples/server/petstore/springboot-file-delegate-optional/src/main/java/org/openapitools/api/DummyApi.java +++ b/samples/server/petstore/springboot-file-delegate-optional/src/main/java/org/openapitools/api/DummyApi.java @@ -17,6 +17,7 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-file-delegate-optional/src/main/java/org/openapitools/api/DummyApiDelegate.java b/samples/server/petstore/springboot-file-delegate-optional/src/main/java/org/openapitools/api/DummyApiDelegate.java index 5c3be74d7ed..e3e287b104a 100644 --- a/samples/server/petstore/springboot-file-delegate-optional/src/main/java/org/openapitools/api/DummyApiDelegate.java +++ b/samples/server/petstore/springboot-file-delegate-optional/src/main/java/org/openapitools/api/DummyApiDelegate.java @@ -3,6 +3,7 @@ package org.openapitools.api; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/api/PetApi.java index ad253489c8c..51b921cc665 100644 --- a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/api/PetApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.Pet; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/api/StoreApi.java index 19a6cf00577..c8327740559 100644 --- a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/api/StoreApi.java @@ -9,6 +9,7 @@ import java.util.Map; import org.openapitools.model.Order; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/api/UserApi.java index b59d70a1b4c..5116c15ddd6 100644 --- a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/api/UserApi.java @@ -9,6 +9,7 @@ import java.time.OffsetDateTime; import org.openapitools.model.User; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/Category.java index 06fdba953a9..137d5464b90 100644 --- a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/Category.java @@ -25,7 +25,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -36,15 +36,15 @@ public class Category { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -55,11 +55,11 @@ public class Category { */ @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/ModelApiResponse.java index 9064a120041..1b1944c9e22 100644 --- a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -29,7 +29,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -40,15 +40,15 @@ public class ModelApiResponse { */ @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -59,15 +59,15 @@ public class ModelApiResponse { */ @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -78,11 +78,11 @@ public class ModelApiResponse { */ @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/Order.java index a64cf7a6775..61d646a5068 100644 --- a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/Order.java @@ -74,7 +74,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -85,15 +85,15 @@ public class Order { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -104,15 +104,15 @@ public class Order { */ @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -123,15 +123,15 @@ public class Order { */ @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -142,15 +142,15 @@ public class Order { */ @Valid @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -161,11 +161,11 @@ public class Order { */ @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/Pet.java index 10c50147f5a..bf723669c8c 100644 --- a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/Pet.java @@ -91,7 +91,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -102,15 +102,15 @@ public class Pet { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -121,11 +121,11 @@ public class Pet { */ @Valid @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -202,7 +202,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -215,7 +215,7 @@ public class Pet { @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -223,7 +223,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/Tag.java index b9e152d5d6c..3ad3c6cf4df 100644 --- a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/Tag.java @@ -25,7 +25,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -36,15 +36,15 @@ public class Tag { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -55,11 +55,11 @@ public class Tag { */ @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/User.java index e56d600571b..8bf9643a895 100644 --- a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/src/main/java/org/openapitools/model/User.java @@ -37,7 +37,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -48,15 +48,15 @@ public class User { */ @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -67,15 +67,15 @@ public class User { */ @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -86,15 +86,15 @@ public class User { */ @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -105,15 +105,15 @@ public class User { */ @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -124,15 +124,15 @@ public class User { */ @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -143,15 +143,15 @@ public class User { */ @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -162,15 +162,15 @@ public class User { */ @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -181,11 +181,11 @@ public class User { */ @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java index 11b27787482..19216bce9fa 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.Client; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java index 5c86c9d3248..fca14a34bed 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java @@ -21,6 +21,7 @@ import org.openapitools.model.XmlItem; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -98,7 +99,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterBooleanSerialize( - @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body + @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) @Nullable Boolean body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -130,7 +131,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterCompositeSerialize( - @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite outerComposite + @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) @Nullable OuterComposite outerComposite ) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -171,7 +172,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterNumberSerialize( - @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body + @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) @Nullable BigDecimal body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -203,7 +204,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -446,10 +447,10 @@ public interface FakeApi { ) default ResponseEntity testEnumParameters( - @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString ) { @@ -489,8 +490,8 @@ public interface FakeApi { default ResponseEntity testGroupParameters( @NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 888f4b118ab..ce0c01322a3 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.Client; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java index cae327ef7e0..2a160f99e07 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java @@ -11,6 +11,7 @@ import java.util.Set; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java index da1b1ec7186..4e10b2ec59d 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.Order; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java index 0448069b51b..d5689ca159c 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.User; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 25e7edc6691..773291ab5b9 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesAnyType { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index f64b28e8321..5e3b764af70 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesArray { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index d4ccb3cac52..c57bccf770d 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesBoolean { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 2edaa067d45..6fca551155d 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -284,7 +284,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -296,11 +296,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } @@ -324,7 +324,7 @@ public class AdditionalPropertiesClass { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -336,11 +336,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 4e023e5ac23..94a8cbcd6a6 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesInteger { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 4925911430d..ff57a4c1964 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesNumber { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 8271f56b65e..deeb9fdddd0 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesObject { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 2ee8c696843..8753cbaea4f 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesString { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java index 41f5fe09fc5..a66d6f16cdd 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java @@ -81,7 +81,7 @@ public class BigCat extends Cat { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -93,11 +93,11 @@ public class BigCat extends Cat { @ApiModelProperty(value = "") @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java index fd0137b5329..fd49ed0ccec 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Capitalization.java @@ -35,7 +35,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -47,15 +47,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -67,15 +67,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -87,15 +87,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -107,15 +107,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -127,15 +127,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -147,11 +147,11 @@ public class Capitalization { @ApiModelProperty(value = "Name of the pet ") @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java index 92dd5e2e1dd..521f353f732 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Cat.java @@ -49,7 +49,7 @@ public class Cat extends Animal { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -61,11 +61,11 @@ public class Cat extends Animal { @ApiModelProperty(value = "") @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java index 98bde299616..4fda94ab15c 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Category.java @@ -38,7 +38,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public class Category { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ChildWithNullable.java index fc46285ac5e..9657b6cb28b 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -33,7 +33,7 @@ public class ChildWithNullable extends ParentWithNullable { private @Nullable String otherProperty; - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -45,11 +45,11 @@ public class ChildWithNullable extends ParentWithNullable { @ApiModelProperty(value = "") @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java index 4e03cee749d..e46e0267220 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ClassModel.java @@ -26,7 +26,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -38,11 +38,11 @@ public class ClassModel { @ApiModelProperty(value = "") @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java index 3f16a03fdf6..133345b58de 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Client.java @@ -25,7 +25,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -37,11 +37,11 @@ public class Client { @ApiModelProperty(value = "") @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java index f9df4db3878..dc8dcaaac34 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Dog.java @@ -41,7 +41,7 @@ public class Dog extends Animal { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public class Dog extends Animal { @ApiModelProperty(value = "") @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java index 9773ea49467..6a1419957ed 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumArrays.java @@ -102,7 +102,7 @@ public class EnumArrays { @Valid private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -114,11 +114,11 @@ public class EnumArrays { @ApiModelProperty(value = "") @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java index 61abd2bd5d4..2da9188ff1c 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java @@ -192,7 +192,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -232,7 +232,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -264,15 +264,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -284,11 +284,11 @@ public class EnumTest { @Valid @ApiModelProperty(value = "") @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/File.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/File.java index ed0112b13ad..f749c4954d5 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/File.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/File.java @@ -26,7 +26,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -38,11 +38,11 @@ public class File { @ApiModelProperty(value = "Test capitalization") @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 426e7f1f735..344b4ab1364 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -32,7 +32,7 @@ public class FileSchemaTestClass { @Valid private List<@Valid File> files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -44,11 +44,11 @@ public class FileSchemaTestClass { @Valid @ApiModelProperty(value = "") @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java index c59ee6475d1..a141053334f 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java @@ -75,7 +75,7 @@ public class FormatTest { this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public class FormatTest { @Min(10) @Max(100) @ApiModelProperty(value = "") @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -111,15 +111,15 @@ public class FormatTest { @Min(20) @Max(200) @ApiModelProperty(value = "") @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -131,11 +131,11 @@ public class FormatTest { @ApiModelProperty(value = "") @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -161,7 +161,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public class FormatTest { @DecimalMin("54.3") @DecimalMax("987.6") @ApiModelProperty(value = "") @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -197,15 +197,15 @@ public class FormatTest { @DecimalMin("67.8") @DecimalMax("123.4") @ApiModelProperty(value = "") @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -217,11 +217,11 @@ public class FormatTest { @Pattern(regexp = "/[a-z]/i") @ApiModelProperty(value = "") @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -245,7 +245,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -257,11 +257,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -285,7 +285,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -317,11 +317,11 @@ public class FormatTest { @Valid @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -345,7 +345,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index a706e796c8f..32df26a5329 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -29,7 +29,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -41,15 +41,15 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -61,11 +61,11 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 337dfa4d5de..dcc7a5b9165 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,7 +37,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -49,15 +49,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -69,11 +69,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java index 1dba298e44e..03a0d36c22b 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Model200Response.java @@ -30,7 +30,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -42,15 +42,15 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -62,11 +62,11 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java index 6ba366ec528..a47a3421a48 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelList.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelList.java index dc06c29116f..cdc49aefdb5 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelList.java @@ -27,7 +27,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -39,11 +39,11 @@ public class ModelList { @ApiModelProperty(value = "") @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java index 959ff9d7995..e23f9b70f1e 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ModelReturn.java @@ -28,7 +28,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -40,11 +40,11 @@ public class ModelReturn { @ApiModelProperty(value = "") @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java index ce1f39d59bf..5708fa3147e 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Name.java @@ -63,7 +63,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -75,15 +75,15 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -95,15 +95,15 @@ public class Name { @ApiModelProperty(value = "") @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -115,11 +115,11 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java index 1660dd78600..99de5c65a70 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/NumberOnly.java @@ -26,7 +26,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -38,11 +38,11 @@ public class NumberOnly { @Valid @ApiModelProperty(value = "") @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java index 713bb66964a..d2c42e403ab 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @ApiModelProperty(value = "Order Status") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java index 59c8b16704a..e69df693bed 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/OuterComposite.java @@ -30,7 +30,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -42,15 +42,15 @@ public class OuterComposite { @Valid @ApiModelProperty(value = "") @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -62,15 +62,15 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -82,11 +82,11 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ParentWithNullable.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ParentWithNullable.java index 49238f51494..ef9877936a6 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ParentWithNullable.java @@ -76,7 +76,7 @@ public class ParentWithNullable { private JsonNullable nullableProperty = JsonNullable.undefined(); - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -88,11 +88,11 @@ public class ParentWithNullable { @ApiModelProperty(value = "") @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java index 54aa2170c78..901eec55257 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java @@ -96,7 +96,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -108,15 +108,15 @@ public class Pet { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -128,11 +128,11 @@ public class Pet { @Valid @ApiModelProperty(value = "") @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -213,7 +213,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -227,7 +227,7 @@ public class Pet { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -235,7 +235,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java index ad83db00ffc..15329f8cb12 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -27,7 +27,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -39,15 +39,15 @@ public class ReadOnlyFirst { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -59,11 +59,11 @@ public class ReadOnlyFirst { @ApiModelProperty(value = "") @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java index 9f6a0d214d6..9002188cbf7 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java @@ -31,7 +31,7 @@ public class ResponseObjectWithDifferentFieldNames { private @Nullable String propertyNameWithSpaces; - public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNames normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -43,15 +43,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -63,15 +63,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -83,15 +83,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -103,11 +103,11 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java index e13401f2a3b..5cda5fbc2ed 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/SpecialModelName.java @@ -27,7 +27,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -39,11 +39,11 @@ public class SpecialModelName { @ApiModelProperty(value = "") @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java index 8e03f47541a..0aa2038f01c 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java index 1f4462a7cf4..2dbf6f2f0db 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java index 93db0d19fad..a5f92d54e90 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java @@ -94,7 +94,7 @@ public class XmlItem { @Valid private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -106,15 +106,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -126,15 +126,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -146,15 +146,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -166,11 +166,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -202,7 +202,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -234,15 +234,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -254,15 +254,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -274,11 +274,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -338,7 +338,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -370,15 +370,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -390,15 +390,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -410,11 +410,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -474,7 +474,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -506,15 +506,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -526,15 +526,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -546,11 +546,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -610,7 +610,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -642,15 +642,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -662,15 +662,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -682,11 +682,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/server/petstore/springboot-lombok-data/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-lombok-data/src/main/java/org/openapitools/api/PetApi.java index c3ccf8c0a18..6a78164f7cc 100644 --- a/samples/server/petstore/springboot-lombok-data/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-lombok-data/src/main/java/org/openapitools/api/PetApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -123,7 +124,7 @@ public interface PetApi { default ResponseEntity deletePet( @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId, - @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) String apiKey + @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-lombok-data/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-lombok-data/src/main/java/org/openapitools/api/StoreApi.java index 501c1fc923b..e674b3c7748 100644 --- a/samples/server/petstore/springboot-lombok-data/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-lombok-data/src/main/java/org/openapitools/api/StoreApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-lombok-data/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-lombok-data/src/main/java/org/openapitools/api/UserApi.java index fd15a8b2557..b9eb373eabc 100644 --- a/samples/server/petstore/springboot-lombok-data/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-lombok-data/src/main/java/org/openapitools/api/UserApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/api/PetApi.java index aa5db0bd4ff..8c9fe11ab7a 100644 --- a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/api/PetApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -123,7 +124,7 @@ public interface PetApi { default ResponseEntity deletePet( @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId, - @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) String apiKey + @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/api/StoreApi.java index 7ce733c17b3..11fcda03f0e 100644 --- a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/api/StoreApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/api/UserApi.java index 550503a4730..4f0f4eb1fc1 100644 --- a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/api/UserApi.java @@ -21,6 +21,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/Category.java index 058aa25a036..f2ecb66662c 100644 --- a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/Category.java @@ -32,13 +32,13 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } diff --git a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/ModelApiResponse.java index a5ae8e362dd..ac594921da3 100644 --- a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -36,19 +36,19 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } diff --git a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/Order.java index 2a043681c09..e7056a30ec5 100644 --- a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/Order.java @@ -81,31 +81,31 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } diff --git a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/Pet.java index c194df759a8..1246326e8cc 100644 --- a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/Pet.java @@ -98,13 +98,13 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -144,7 +144,7 @@ public class Pet { } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } diff --git a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/Tag.java index dbc1bac75fc..0765f071de1 100644 --- a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/Tag.java @@ -32,13 +32,13 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } diff --git a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/User.java index 67327ab447a..4ee447b3349 100644 --- a/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-lombok-tostring/src/main/java/org/openapitools/model/User.java @@ -44,49 +44,49 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } diff --git a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/PetApi.java index 4b7168c21b1..000750abf8a 100644 --- a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/PetApi.java @@ -19,6 +19,7 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -114,7 +115,7 @@ public interface PetApi { default ResponseEntity deletePet( @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId, - @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) String apiKey + @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return getDelegate().deletePet(petId, apiKey); } diff --git a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/PetApiDelegate.java b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/PetApiDelegate.java index 94e9a75c3d6..ee5eda475d5 100644 --- a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/PetApiDelegate.java +++ b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/PetApiDelegate.java @@ -5,6 +5,7 @@ import org.openapitools.model.Pet; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/StoreApi.java index 5b59e551154..4a393a91ab1 100644 --- a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/StoreApi.java @@ -19,6 +19,7 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/StoreApiDelegate.java b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/StoreApiDelegate.java index 88a64708ec3..cbc30c4b0c2 100644 --- a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/StoreApiDelegate.java +++ b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/StoreApiDelegate.java @@ -5,6 +5,7 @@ import org.openapitools.model.Order; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/UserApi.java index 4de2e8d283d..c6c1e2c8903 100644 --- a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/UserApi.java @@ -19,6 +19,7 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/UserApiDelegate.java b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/UserApiDelegate.java index 062ef7a9183..c999d30c343 100644 --- a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/UserApiDelegate.java +++ b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/api/UserApiDelegate.java @@ -5,6 +5,7 @@ import org.openapitools.model.User; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/Category.java index b2c04d0949d..da305c22ca0 100644 --- a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/Category.java @@ -27,7 +27,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Category { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Category { @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/ModelApiResponse.java index 119789df3d6..0cf7d130582 100644 --- a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/Order.java index f648544c6b1..822435d2a0c 100644 --- a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/Pet.java index b53c806b8e1..6e170f8679b 100644 --- a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/Pet.java @@ -93,7 +93,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public class Pet { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -125,11 +125,11 @@ public class Pet { @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -209,7 +209,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public class Pet { @Schema(name = "status", description = "pet status in the store", deprecated = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -231,7 +231,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/Tag.java index 96a8a4339c0..556fec8368f 100644 --- a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/User.java index 308cae933a2..650e0fff926 100644 --- a/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-petstore-with-api-response-examples/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/AnotherFakeApi.java index bf23e47d313..2c63445a8e4 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import springfox.documentation.annotations.ApiIgnore; import org.openapitools.model.Client; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.HttpStatus; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java index 850ebd05328..e46b6d56b8b 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java @@ -4,6 +4,7 @@ import springfox.documentation.annotations.ApiIgnore; import org.openapitools.model.Client; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.server.ServerWebExchange; diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java index 15f3f3fef8c..4c3b32faae3 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java @@ -20,6 +20,7 @@ import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.HttpStatus; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -429,12 +430,12 @@ public interface FakeApi { @ResponseStatus(HttpStatus.BAD_REQUEST) default Mono testEnumParameters( - @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString, @ApiIgnore final ServerWebExchange exchange @@ -474,9 +475,9 @@ public interface FakeApi { @NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group, + @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group, @ApiIgnore final ServerWebExchange exchange ) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, exchange); diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApiDelegate.java index e3ecabc8591..795fb50b74d 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -16,6 +16,7 @@ import org.openapitools.model.User; import org.openapitools.model.XmlItem; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.server.ServerWebExchange; diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 29f360e25fd..adbf5f0d310 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import springfox.documentation.annotations.ApiIgnore; import org.openapitools.model.Client; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.HttpStatus; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java index da4937fd8a6..71b65f12569 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java @@ -4,6 +4,7 @@ import springfox.documentation.annotations.ApiIgnore; import org.openapitools.model.Client; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.server.ServerWebExchange; diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/PetApi.java index c6b02cde90f..3bcb956fb1b 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/PetApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.Pet; import java.util.Set; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.HttpStatus; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -106,7 +107,7 @@ public interface PetApi { default Mono deletePet( @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId, - @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey, + @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey, @ApiIgnore final ServerWebExchange exchange ) { return getDelegate().deletePet(petId, apiKey, exchange); diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/PetApiDelegate.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/PetApiDelegate.java index 9028f1d432f..caee530115a 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/PetApiDelegate.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/PetApiDelegate.java @@ -6,6 +6,7 @@ import org.openapitools.model.Pet; import java.util.Set; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.server.ServerWebExchange; diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/StoreApi.java index 963e2672a86..da20eb54531 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/StoreApi.java @@ -9,6 +9,7 @@ import springfox.documentation.annotations.ApiIgnore; import java.util.Map; import org.openapitools.model.Order; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.HttpStatus; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/StoreApiDelegate.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/StoreApiDelegate.java index 682e082c3d0..7b6c899e8c3 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/StoreApiDelegate.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/StoreApiDelegate.java @@ -5,6 +5,7 @@ import java.util.Map; import org.openapitools.model.Order; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.server.ServerWebExchange; diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/UserApi.java index f70d715825d..0d48a20d466 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/UserApi.java @@ -9,6 +9,7 @@ import springfox.documentation.annotations.ApiIgnore; import java.time.OffsetDateTime; import org.openapitools.model.User; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.HttpStatus; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/UserApiDelegate.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/UserApiDelegate.java index f776ff24411..77b750ac84e 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/UserApiDelegate.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/UserApiDelegate.java @@ -5,6 +5,7 @@ import java.time.OffsetDateTime; import org.openapitools.model.User; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.server.ServerWebExchange; diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 25e7edc6691..773291ab5b9 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesAnyType { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index f64b28e8321..5e3b764af70 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesArray { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index d4ccb3cac52..c57bccf770d 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesBoolean { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 2edaa067d45..6fca551155d 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -284,7 +284,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -296,11 +296,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } @@ -324,7 +324,7 @@ public class AdditionalPropertiesClass { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -336,11 +336,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 4e023e5ac23..94a8cbcd6a6 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesInteger { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 4925911430d..ff57a4c1964 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesNumber { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 8271f56b65e..deeb9fdddd0 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesObject { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 2ee8c696843..8753cbaea4f 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesString { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/BigCat.java index 41f5fe09fc5..a66d6f16cdd 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/BigCat.java @@ -81,7 +81,7 @@ public class BigCat extends Cat { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -93,11 +93,11 @@ public class BigCat extends Cat { @ApiModelProperty(value = "") @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Capitalization.java index fd0137b5329..fd49ed0ccec 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Capitalization.java @@ -35,7 +35,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -47,15 +47,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -67,15 +67,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -87,15 +87,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -107,15 +107,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -127,15 +127,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -147,11 +147,11 @@ public class Capitalization { @ApiModelProperty(value = "Name of the pet ") @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Cat.java index 92dd5e2e1dd..521f353f732 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Cat.java @@ -49,7 +49,7 @@ public class Cat extends Animal { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -61,11 +61,11 @@ public class Cat extends Animal { @ApiModelProperty(value = "") @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Category.java index 98bde299616..4fda94ab15c 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Category.java @@ -38,7 +38,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public class Category { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullable.java index fc46285ac5e..9657b6cb28b 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -33,7 +33,7 @@ public class ChildWithNullable extends ParentWithNullable { private @Nullable String otherProperty; - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -45,11 +45,11 @@ public class ChildWithNullable extends ParentWithNullable { @ApiModelProperty(value = "") @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ClassModel.java index 4e03cee749d..e46e0267220 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ClassModel.java @@ -26,7 +26,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -38,11 +38,11 @@ public class ClassModel { @ApiModelProperty(value = "") @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Client.java index 3f16a03fdf6..133345b58de 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Client.java @@ -25,7 +25,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -37,11 +37,11 @@ public class Client { @ApiModelProperty(value = "") @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Dog.java index f9df4db3878..dc8dcaaac34 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Dog.java @@ -41,7 +41,7 @@ public class Dog extends Animal { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public class Dog extends Animal { @ApiModelProperty(value = "") @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumArrays.java index 9773ea49467..6a1419957ed 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumArrays.java @@ -102,7 +102,7 @@ public class EnumArrays { @Valid private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -114,11 +114,11 @@ public class EnumArrays { @ApiModelProperty(value = "") @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumTest.java index 61abd2bd5d4..2da9188ff1c 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumTest.java @@ -192,7 +192,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -232,7 +232,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -264,15 +264,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -284,11 +284,11 @@ public class EnumTest { @Valid @ApiModelProperty(value = "") @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/File.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/File.java index ed0112b13ad..f749c4954d5 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/File.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/File.java @@ -26,7 +26,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -38,11 +38,11 @@ public class File { @ApiModelProperty(value = "Test capitalization") @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 426e7f1f735..344b4ab1364 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -32,7 +32,7 @@ public class FileSchemaTestClass { @Valid private List<@Valid File> files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -44,11 +44,11 @@ public class FileSchemaTestClass { @Valid @ApiModelProperty(value = "") @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/FormatTest.java index c59ee6475d1..a141053334f 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/FormatTest.java @@ -75,7 +75,7 @@ public class FormatTest { this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public class FormatTest { @Min(10) @Max(100) @ApiModelProperty(value = "") @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -111,15 +111,15 @@ public class FormatTest { @Min(20) @Max(200) @ApiModelProperty(value = "") @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -131,11 +131,11 @@ public class FormatTest { @ApiModelProperty(value = "") @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -161,7 +161,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public class FormatTest { @DecimalMin("54.3") @DecimalMax("987.6") @ApiModelProperty(value = "") @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -197,15 +197,15 @@ public class FormatTest { @DecimalMin("67.8") @DecimalMax("123.4") @ApiModelProperty(value = "") @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -217,11 +217,11 @@ public class FormatTest { @Pattern(regexp = "/[a-z]/i") @ApiModelProperty(value = "") @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -245,7 +245,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -257,11 +257,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -285,7 +285,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -317,11 +317,11 @@ public class FormatTest { @Valid @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -345,7 +345,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index a706e796c8f..32df26a5329 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -29,7 +29,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -41,15 +41,15 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -61,11 +61,11 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 337dfa4d5de..dcc7a5b9165 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,7 +37,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -49,15 +49,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -69,11 +69,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Model200Response.java index 1dba298e44e..03a0d36c22b 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Model200Response.java @@ -30,7 +30,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -42,15 +42,15 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -62,11 +62,11 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelApiResponse.java index 6ba366ec528..a47a3421a48 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelList.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelList.java index dc06c29116f..cdc49aefdb5 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelList.java @@ -27,7 +27,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -39,11 +39,11 @@ public class ModelList { @ApiModelProperty(value = "") @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelReturn.java index 959ff9d7995..e23f9b70f1e 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ModelReturn.java @@ -28,7 +28,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -40,11 +40,11 @@ public class ModelReturn { @ApiModelProperty(value = "") @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Name.java index ce1f39d59bf..5708fa3147e 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Name.java @@ -63,7 +63,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -75,15 +75,15 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -95,15 +95,15 @@ public class Name { @ApiModelProperty(value = "") @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -115,11 +115,11 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/NumberOnly.java index 1660dd78600..99de5c65a70 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/NumberOnly.java @@ -26,7 +26,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -38,11 +38,11 @@ public class NumberOnly { @Valid @ApiModelProperty(value = "") @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Order.java index 713bb66964a..d2c42e403ab 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @ApiModelProperty(value = "Order Status") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/OuterComposite.java index 59c8b16704a..e69df693bed 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/OuterComposite.java @@ -30,7 +30,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -42,15 +42,15 @@ public class OuterComposite { @Valid @ApiModelProperty(value = "") @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -62,15 +62,15 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -82,11 +82,11 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ParentWithNullable.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ParentWithNullable.java index 49238f51494..ef9877936a6 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ParentWithNullable.java @@ -76,7 +76,7 @@ public class ParentWithNullable { private JsonNullable nullableProperty = JsonNullable.undefined(); - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -88,11 +88,11 @@ public class ParentWithNullable { @ApiModelProperty(value = "") @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Pet.java index 54aa2170c78..901eec55257 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Pet.java @@ -96,7 +96,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -108,15 +108,15 @@ public class Pet { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -128,11 +128,11 @@ public class Pet { @Valid @ApiModelProperty(value = "") @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -213,7 +213,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -227,7 +227,7 @@ public class Pet { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -235,7 +235,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ReadOnlyFirst.java index ad83db00ffc..15329f8cb12 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -27,7 +27,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -39,15 +39,15 @@ public class ReadOnlyFirst { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -59,11 +59,11 @@ public class ReadOnlyFirst { @ApiModelProperty(value = "") @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java index 9f6a0d214d6..9002188cbf7 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java @@ -31,7 +31,7 @@ public class ResponseObjectWithDifferentFieldNames { private @Nullable String propertyNameWithSpaces; - public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNames normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -43,15 +43,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -63,15 +63,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -83,15 +83,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -103,11 +103,11 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/SpecialModelName.java index e13401f2a3b..5cda5fbc2ed 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/SpecialModelName.java @@ -27,7 +27,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -39,11 +39,11 @@ public class SpecialModelName { @ApiModelProperty(value = "") @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Tag.java index 8e03f47541a..0aa2038f01c 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/User.java index 1f4462a7cf4..2dbf6f2f0db 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/XmlItem.java index 93db0d19fad..a5f92d54e90 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/XmlItem.java @@ -94,7 +94,7 @@ public class XmlItem { @Valid private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -106,15 +106,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -126,15 +126,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -146,15 +146,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -166,11 +166,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -202,7 +202,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -234,15 +234,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -254,15 +254,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -274,11 +274,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -338,7 +338,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -370,15 +370,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -390,15 +390,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -410,11 +410,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -474,7 +474,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -506,15 +506,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -526,15 +526,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -546,11 +546,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -610,7 +610,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -642,15 +642,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -662,15 +662,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -682,11 +682,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java index 549808e2987..418646a2976 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import springfox.documentation.annotations.ApiIgnore; import org.openapitools.model.Client; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java index 82a289c63ed..ea2ba842614 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java @@ -5,6 +5,7 @@ import org.openapitools.model.Client; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.server.ServerWebExchange; diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java index 2ecb9718ff7..5318a58beab 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java @@ -20,6 +20,7 @@ import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -418,12 +419,12 @@ public interface FakeApi { ) default Mono> testEnumParameters( - @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString, @ApiIgnore final ServerWebExchange exchange @@ -462,9 +463,9 @@ public interface FakeApi { @NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group, + @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group, @ApiIgnore final ServerWebExchange exchange ) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, exchange); diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApiDelegate.java index 1c3d92a3e18..b9c384d80af 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -17,6 +17,7 @@ import org.openapitools.model.XmlItem; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.server.ServerWebExchange; diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 53c56518ae3..e47d1240a59 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import springfox.documentation.annotations.ApiIgnore; import org.openapitools.model.Client; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java index 2436604bb6f..d01abbacccc 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java @@ -5,6 +5,7 @@ import org.openapitools.model.Client; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.server.ServerWebExchange; diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java index fa491065344..253dc4182a1 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.Pet; import java.util.Set; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -104,7 +105,7 @@ public interface PetApi { default Mono> deletePet( @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId, - @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey, + @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey, @ApiIgnore final ServerWebExchange exchange ) { return getDelegate().deletePet(petId, apiKey, exchange); diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApiDelegate.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApiDelegate.java index 7dd7ea45a46..b673d32f11c 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApiDelegate.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApiDelegate.java @@ -7,6 +7,7 @@ import java.util.Set; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.server.ServerWebExchange; diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java index e1e2f27094b..6a030a93d98 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java @@ -9,6 +9,7 @@ import springfox.documentation.annotations.ApiIgnore; import java.util.Map; import org.openapitools.model.Order; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApiDelegate.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApiDelegate.java index 38c7cbc110e..ab1281340b0 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApiDelegate.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApiDelegate.java @@ -6,6 +6,7 @@ import org.openapitools.model.Order; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.server.ServerWebExchange; diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java index 628c1393602..ce8cfe8b45d 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java @@ -9,6 +9,7 @@ import springfox.documentation.annotations.ApiIgnore; import java.time.OffsetDateTime; import org.openapitools.model.User; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApiDelegate.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApiDelegate.java index 792a2d5e905..94641ad0c7c 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApiDelegate.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApiDelegate.java @@ -6,6 +6,7 @@ import org.openapitools.model.User; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.server.ServerWebExchange; diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 25e7edc6691..773291ab5b9 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesAnyType { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index f64b28e8321..5e3b764af70 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesArray { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index d4ccb3cac52..c57bccf770d 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesBoolean { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 2edaa067d45..6fca551155d 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -284,7 +284,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -296,11 +296,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } @@ -324,7 +324,7 @@ public class AdditionalPropertiesClass { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -336,11 +336,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 4e023e5ac23..94a8cbcd6a6 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesInteger { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 4925911430d..ff57a4c1964 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesNumber { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 8271f56b65e..deeb9fdddd0 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesObject { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 2ee8c696843..8753cbaea4f 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesString { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java index 41f5fe09fc5..a66d6f16cdd 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java @@ -81,7 +81,7 @@ public class BigCat extends Cat { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -93,11 +93,11 @@ public class BigCat extends Cat { @ApiModelProperty(value = "") @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Capitalization.java index fd0137b5329..fd49ed0ccec 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Capitalization.java @@ -35,7 +35,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -47,15 +47,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -67,15 +67,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -87,15 +87,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -107,15 +107,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -127,15 +127,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -147,11 +147,11 @@ public class Capitalization { @ApiModelProperty(value = "Name of the pet ") @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Cat.java index 92dd5e2e1dd..521f353f732 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Cat.java @@ -49,7 +49,7 @@ public class Cat extends Animal { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -61,11 +61,11 @@ public class Cat extends Animal { @ApiModelProperty(value = "") @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Category.java index 98bde299616..4fda94ab15c 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Category.java @@ -38,7 +38,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public class Category { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java index fc46285ac5e..9657b6cb28b 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -33,7 +33,7 @@ public class ChildWithNullable extends ParentWithNullable { private @Nullable String otherProperty; - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -45,11 +45,11 @@ public class ChildWithNullable extends ParentWithNullable { @ApiModelProperty(value = "") @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ClassModel.java index 4e03cee749d..e46e0267220 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ClassModel.java @@ -26,7 +26,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -38,11 +38,11 @@ public class ClassModel { @ApiModelProperty(value = "") @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Client.java index 3f16a03fdf6..133345b58de 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Client.java @@ -25,7 +25,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -37,11 +37,11 @@ public class Client { @ApiModelProperty(value = "") @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Dog.java index f9df4db3878..dc8dcaaac34 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Dog.java @@ -41,7 +41,7 @@ public class Dog extends Animal { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public class Dog extends Animal { @ApiModelProperty(value = "") @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumArrays.java index 9773ea49467..6a1419957ed 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumArrays.java @@ -102,7 +102,7 @@ public class EnumArrays { @Valid private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -114,11 +114,11 @@ public class EnumArrays { @ApiModelProperty(value = "") @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java index 61abd2bd5d4..2da9188ff1c 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java @@ -192,7 +192,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -232,7 +232,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -264,15 +264,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -284,11 +284,11 @@ public class EnumTest { @Valid @ApiModelProperty(value = "") @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/File.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/File.java index ed0112b13ad..f749c4954d5 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/File.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/File.java @@ -26,7 +26,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -38,11 +38,11 @@ public class File { @ApiModelProperty(value = "Test capitalization") @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 426e7f1f735..344b4ab1364 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -32,7 +32,7 @@ public class FileSchemaTestClass { @Valid private List<@Valid File> files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -44,11 +44,11 @@ public class FileSchemaTestClass { @Valid @ApiModelProperty(value = "") @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java index c59ee6475d1..a141053334f 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java @@ -75,7 +75,7 @@ public class FormatTest { this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public class FormatTest { @Min(10) @Max(100) @ApiModelProperty(value = "") @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -111,15 +111,15 @@ public class FormatTest { @Min(20) @Max(200) @ApiModelProperty(value = "") @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -131,11 +131,11 @@ public class FormatTest { @ApiModelProperty(value = "") @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -161,7 +161,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public class FormatTest { @DecimalMin("54.3") @DecimalMax("987.6") @ApiModelProperty(value = "") @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -197,15 +197,15 @@ public class FormatTest { @DecimalMin("67.8") @DecimalMax("123.4") @ApiModelProperty(value = "") @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -217,11 +217,11 @@ public class FormatTest { @Pattern(regexp = "/[a-z]/i") @ApiModelProperty(value = "") @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -245,7 +245,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -257,11 +257,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -285,7 +285,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -317,11 +317,11 @@ public class FormatTest { @Valid @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -345,7 +345,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index a706e796c8f..32df26a5329 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -29,7 +29,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -41,15 +41,15 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -61,11 +61,11 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 337dfa4d5de..dcc7a5b9165 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,7 +37,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -49,15 +49,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -69,11 +69,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Model200Response.java index 1dba298e44e..03a0d36c22b 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Model200Response.java @@ -30,7 +30,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -42,15 +42,15 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -62,11 +62,11 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java index 6ba366ec528..a47a3421a48 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelList.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelList.java index dc06c29116f..cdc49aefdb5 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelList.java @@ -27,7 +27,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -39,11 +39,11 @@ public class ModelList { @ApiModelProperty(value = "") @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelReturn.java index 959ff9d7995..e23f9b70f1e 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ModelReturn.java @@ -28,7 +28,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -40,11 +40,11 @@ public class ModelReturn { @ApiModelProperty(value = "") @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Name.java index ce1f39d59bf..5708fa3147e 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Name.java @@ -63,7 +63,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -75,15 +75,15 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -95,15 +95,15 @@ public class Name { @ApiModelProperty(value = "") @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -115,11 +115,11 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/NumberOnly.java index 1660dd78600..99de5c65a70 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/NumberOnly.java @@ -26,7 +26,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -38,11 +38,11 @@ public class NumberOnly { @Valid @ApiModelProperty(value = "") @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Order.java index 713bb66964a..d2c42e403ab 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @ApiModelProperty(value = "Order Status") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterComposite.java index 59c8b16704a..e69df693bed 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/OuterComposite.java @@ -30,7 +30,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -42,15 +42,15 @@ public class OuterComposite { @Valid @ApiModelProperty(value = "") @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -62,15 +62,15 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -82,11 +82,11 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ParentWithNullable.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ParentWithNullable.java index 49238f51494..ef9877936a6 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ParentWithNullable.java @@ -76,7 +76,7 @@ public class ParentWithNullable { private JsonNullable nullableProperty = JsonNullable.undefined(); - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -88,11 +88,11 @@ public class ParentWithNullable { @ApiModelProperty(value = "") @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java index 54aa2170c78..901eec55257 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java @@ -96,7 +96,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -108,15 +108,15 @@ public class Pet { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -128,11 +128,11 @@ public class Pet { @Valid @ApiModelProperty(value = "") @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -213,7 +213,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -227,7 +227,7 @@ public class Pet { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -235,7 +235,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java index ad83db00ffc..15329f8cb12 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -27,7 +27,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -39,15 +39,15 @@ public class ReadOnlyFirst { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -59,11 +59,11 @@ public class ReadOnlyFirst { @ApiModelProperty(value = "") @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java index 9f6a0d214d6..9002188cbf7 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java @@ -31,7 +31,7 @@ public class ResponseObjectWithDifferentFieldNames { private @Nullable String propertyNameWithSpaces; - public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNames normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -43,15 +43,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -63,15 +63,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -83,15 +83,15 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -103,11 +103,11 @@ public class ResponseObjectWithDifferentFieldNames { @ApiModelProperty(value = "") @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/SpecialModelName.java index e13401f2a3b..5cda5fbc2ed 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/SpecialModelName.java @@ -27,7 +27,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -39,11 +39,11 @@ public class SpecialModelName { @ApiModelProperty(value = "") @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Tag.java index 8e03f47541a..0aa2038f01c 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/User.java index 1f4462a7cf4..2dbf6f2f0db 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java index 93db0d19fad..a5f92d54e90 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java @@ -94,7 +94,7 @@ public class XmlItem { @Valid private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -106,15 +106,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -126,15 +126,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -146,15 +146,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -166,11 +166,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -202,7 +202,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -234,15 +234,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -254,15 +254,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -274,11 +274,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -338,7 +338,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -370,15 +370,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -390,15 +390,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -410,11 +410,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -474,7 +474,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -506,15 +506,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -526,15 +526,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -546,11 +546,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -610,7 +610,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -642,15 +642,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -662,15 +662,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -682,11 +682,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index 2a381a8ed9c..f4457252d99 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.Client; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java index 9e4d6733302..4728b8bd5b9 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java @@ -4,6 +4,7 @@ import org.openapitools.model.Client; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java index 37c819ce1a3..24ec5803a05 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -17,6 +17,7 @@ import org.openapitools.model.OuterComposite; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -90,7 +91,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterBooleanSerialize( - @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body + @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) @Nullable Boolean body ) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -120,7 +121,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterCompositeSerialize( - @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body + @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) @Nullable OuterComposite body ) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -150,7 +151,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterNumberSerialize( - @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body + @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) @Nullable BigDecimal body ) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -180,7 +181,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body ) { return getDelegate().fakeOuterStringSerialize(body); } @@ -368,12 +369,12 @@ public interface FakeApi { ) default ResponseEntity testEnumParameters( - @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString ) { @@ -411,9 +412,9 @@ public interface FakeApi { @NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java index f9a00f8644a..6e07cca9c0b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -14,6 +14,7 @@ import org.openapitools.model.XmlItem; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 99e3d1e8700..1199985bb47 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.Client; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java index 199f7439ee8..8f03a02174d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java @@ -4,6 +4,7 @@ import org.openapitools.model.Client; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java index 6e24e0a563c..e4438843df2 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.ModelApiResponse; import org.springframework.data.domain.Pageable; import org.openapitools.model.Pet; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -97,7 +98,7 @@ public interface PetApi { default ResponseEntity deletePet( @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId, - @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey + @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return getDelegate().deletePet(petId, apiKey); } @@ -180,7 +181,7 @@ public interface PetApi { default ResponseEntity> findPetsByTags( @NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, - @ApiParam(value = "A test HeaderParam for issue #8315 - must NOT be removed when x-spring-paginated:true is used.") @RequestHeader(value = "size", required = false) String size, + @ApiParam(value = "A test HeaderParam for issue #8315 - must NOT be removed when x-spring-paginated:true is used.") @RequestHeader(value = "size", required = false) @Nullable String size, @ApiIgnore final Pageable pageable ) { return getDelegate().findPetsByTags(tags, size, pageable); diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiDelegate.java index 819913bf981..bcc8b880bc5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiDelegate.java @@ -7,6 +7,7 @@ import org.openapitools.model.Pet; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java index 1e05fbf95dc..750870e11e3 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.util.Map; import org.openapitools.model.Order; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiDelegate.java index 827d94d5b02..fe87b0dcd56 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/StoreApiDelegate.java @@ -5,6 +5,7 @@ import org.openapitools.model.Order; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java index 75e4c52b1da..36c1e715423 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.time.OffsetDateTime; import org.openapitools.model.User; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiDelegate.java index 54f66378f57..37c57bfdee7 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/UserApiDelegate.java @@ -5,6 +5,7 @@ import org.openapitools.model.User; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/VersioningApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/VersioningApi.java index 11e620cf874..eefd4977fc5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/VersioningApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/VersioningApi.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.ModelApiResponse; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/VersioningApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/VersioningApiDelegate.java index 91155dbaf4f..bff127533b1 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/VersioningApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/VersioningApiDelegate.java @@ -4,6 +4,7 @@ import org.openapitools.model.ModelApiResponse; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 25e7edc6691..773291ab5b9 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesAnyType { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index f64b28e8321..5e3b764af70 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesArray { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index d4ccb3cac52..c57bccf770d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesBoolean { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 2872ccbec82..2589c1018d8 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -281,7 +281,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -293,15 +293,15 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@Nullable Object anytype2) { this.anytype2 = anytype2; return this; } @@ -313,15 +313,15 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_2") - public Object getAnytype2() { + public @Nullable Object getAnytype2() { return anytype2; } - public void setAnytype2(Object anytype2) { + public void setAnytype2(@Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -333,11 +333,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 4e023e5ac23..94a8cbcd6a6 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesInteger { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 4925911430d..ff57a4c1964 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesNumber { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 8271f56b65e..deeb9fdddd0 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesObject { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 2ee8c696843..8753cbaea4f 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesString { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Capitalization.java index fd0137b5329..fd49ed0ccec 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Capitalization.java @@ -35,7 +35,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -47,15 +47,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -67,15 +67,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -87,15 +87,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -107,15 +107,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -127,15 +127,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -147,11 +147,11 @@ public class Capitalization { @ApiModelProperty(value = "Name of the pet ") @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Cat.java index 1c38c1290c4..5ccb4eaba50 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Cat.java @@ -41,7 +41,7 @@ public class Cat extends Animal { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -53,11 +53,11 @@ public class Cat extends Animal { @ApiModelProperty(value = "") @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Category.java index 98bde299616..4fda94ab15c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Category.java @@ -38,7 +38,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public class Category { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ClassModel.java index 4e03cee749d..e46e0267220 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ClassModel.java @@ -26,7 +26,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -38,11 +38,11 @@ public class ClassModel { @ApiModelProperty(value = "") @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Client.java index 3f16a03fdf6..133345b58de 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Client.java @@ -25,7 +25,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -37,11 +37,11 @@ public class Client { @ApiModelProperty(value = "") @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Dog.java index f9df4db3878..dc8dcaaac34 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Dog.java @@ -41,7 +41,7 @@ public class Dog extends Animal { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public class Dog extends Animal { @ApiModelProperty(value = "") @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumArrays.java index 9773ea49467..6a1419957ed 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumArrays.java @@ -102,7 +102,7 @@ public class EnumArrays { @Valid private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -114,11 +114,11 @@ public class EnumArrays { @ApiModelProperty(value = "") @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java index 61abd2bd5d4..2da9188ff1c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java @@ -192,7 +192,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -232,7 +232,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -264,15 +264,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -284,11 +284,11 @@ public class EnumTest { @Valid @ApiModelProperty(value = "") @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/File.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/File.java index ed0112b13ad..f749c4954d5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/File.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/File.java @@ -26,7 +26,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -38,11 +38,11 @@ public class File { @ApiModelProperty(value = "Test capitalization") @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 426e7f1f735..344b4ab1364 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -32,7 +32,7 @@ public class FileSchemaTestClass { @Valid private List<@Valid File> files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -44,11 +44,11 @@ public class FileSchemaTestClass { @Valid @ApiModelProperty(value = "") @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FormatTest.java index c59ee6475d1..a141053334f 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/FormatTest.java @@ -75,7 +75,7 @@ public class FormatTest { this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public class FormatTest { @Min(10) @Max(100) @ApiModelProperty(value = "") @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -111,15 +111,15 @@ public class FormatTest { @Min(20) @Max(200) @ApiModelProperty(value = "") @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -131,11 +131,11 @@ public class FormatTest { @ApiModelProperty(value = "") @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -161,7 +161,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public class FormatTest { @DecimalMin("54.3") @DecimalMax("987.6") @ApiModelProperty(value = "") @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -197,15 +197,15 @@ public class FormatTest { @DecimalMin("67.8") @DecimalMax("123.4") @ApiModelProperty(value = "") @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -217,11 +217,11 @@ public class FormatTest { @Pattern(regexp = "/[a-z]/i") @ApiModelProperty(value = "") @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -245,7 +245,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -257,11 +257,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -285,7 +285,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -317,11 +317,11 @@ public class FormatTest { @Valid @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -345,7 +345,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index a706e796c8f..32df26a5329 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -29,7 +29,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -41,15 +41,15 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -61,11 +61,11 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 337dfa4d5de..dcc7a5b9165 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,7 +37,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -49,15 +49,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -69,11 +69,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Model200Response.java index 1dba298e44e..03a0d36c22b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Model200Response.java @@ -30,7 +30,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -42,15 +42,15 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -62,11 +62,11 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java index 6ba366ec528..a47a3421a48 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelList.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelList.java index dc06c29116f..cdc49aefdb5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelList.java @@ -27,7 +27,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -39,11 +39,11 @@ public class ModelList { @ApiModelProperty(value = "") @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelReturn.java index 959ff9d7995..e23f9b70f1e 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ModelReturn.java @@ -28,7 +28,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -40,11 +40,11 @@ public class ModelReturn { @ApiModelProperty(value = "") @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Name.java index ce1f39d59bf..5708fa3147e 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Name.java @@ -63,7 +63,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -75,15 +75,15 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -95,15 +95,15 @@ public class Name { @ApiModelProperty(value = "") @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -115,11 +115,11 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/NumberOnly.java index 1660dd78600..99de5c65a70 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/NumberOnly.java @@ -26,7 +26,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -38,11 +38,11 @@ public class NumberOnly { @Valid @ApiModelProperty(value = "") @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Order.java index 713bb66964a..d2c42e403ab 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @ApiModelProperty(value = "Order Status") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterComposite.java index 59c8b16704a..e69df693bed 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/OuterComposite.java @@ -30,7 +30,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -42,15 +42,15 @@ public class OuterComposite { @Valid @ApiModelProperty(value = "") @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -62,15 +62,15 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -82,11 +82,11 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Pet.java index a8cae4716e7..f1a188bbc2d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Pet.java @@ -92,7 +92,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -104,15 +104,15 @@ public class Pet { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -124,11 +124,11 @@ public class Pet { @Valid @ApiModelProperty(value = "") @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -208,7 +208,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -220,11 +220,11 @@ public class Pet { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java index ad83db00ffc..15329f8cb12 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -27,7 +27,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -39,15 +39,15 @@ public class ReadOnlyFirst { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -59,11 +59,11 @@ public class ReadOnlyFirst { @ApiModelProperty(value = "") @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java index 3974286e235..f1adbfde805 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java @@ -27,7 +27,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -39,11 +39,11 @@ public class SpecialModelName { @ApiModelProperty(value = "") @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Tag.java index 8e03f47541a..0aa2038f01c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/User.java index 1f4462a7cf4..2dbf6f2f0db 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java index 93db0d19fad..a5f92d54e90 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java @@ -94,7 +94,7 @@ public class XmlItem { @Valid private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -106,15 +106,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -126,15 +126,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -146,15 +146,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -166,11 +166,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -202,7 +202,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -234,15 +234,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -254,15 +254,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -274,11 +274,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -338,7 +338,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -370,15 +370,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -390,15 +390,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -410,11 +410,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -474,7 +474,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -506,15 +506,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -526,15 +526,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -546,11 +546,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -610,7 +610,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -642,15 +642,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -662,15 +662,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -682,11 +682,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java index 2a381a8ed9c..f4457252d99 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.Client; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java index 9e4d6733302..4728b8bd5b9 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java @@ -4,6 +4,7 @@ import org.openapitools.model.Client; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java index 37c819ce1a3..24ec5803a05 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java @@ -17,6 +17,7 @@ import org.openapitools.model.OuterComposite; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -90,7 +91,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterBooleanSerialize( - @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body + @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) @Nullable Boolean body ) { return getDelegate().fakeOuterBooleanSerialize(body); } @@ -120,7 +121,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterCompositeSerialize( - @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body + @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) @Nullable OuterComposite body ) { return getDelegate().fakeOuterCompositeSerialize(body); } @@ -150,7 +151,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterNumberSerialize( - @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body + @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) @Nullable BigDecimal body ) { return getDelegate().fakeOuterNumberSerialize(body); } @@ -180,7 +181,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body ) { return getDelegate().fakeOuterStringSerialize(body); } @@ -368,12 +369,12 @@ public interface FakeApi { ) default ResponseEntity testEnumParameters( - @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString ) { @@ -411,9 +412,9 @@ public interface FakeApi { @NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ) { return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApiDelegate.java index f9a00f8644a..6e07cca9c0b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -14,6 +14,7 @@ import org.openapitools.model.XmlItem; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 99e3d1e8700..1199985bb47 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.Client; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java index 199f7439ee8..8f03a02174d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java @@ -4,6 +4,7 @@ import org.openapitools.model.Client; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java index 6e24e0a563c..e4438843df2 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.ModelApiResponse; import org.springframework.data.domain.Pageable; import org.openapitools.model.Pet; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -97,7 +98,7 @@ public interface PetApi { default ResponseEntity deletePet( @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId, - @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey + @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return getDelegate().deletePet(petId, apiKey); } @@ -180,7 +181,7 @@ public interface PetApi { default ResponseEntity> findPetsByTags( @NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, - @ApiParam(value = "A test HeaderParam for issue #8315 - must NOT be removed when x-spring-paginated:true is used.") @RequestHeader(value = "size", required = false) String size, + @ApiParam(value = "A test HeaderParam for issue #8315 - must NOT be removed when x-spring-paginated:true is used.") @RequestHeader(value = "size", required = false) @Nullable String size, @ApiIgnore final Pageable pageable ) { return getDelegate().findPetsByTags(tags, size, pageable); diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApiDelegate.java index 819913bf981..bcc8b880bc5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApiDelegate.java @@ -7,6 +7,7 @@ import org.openapitools.model.Pet; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java index 1e05fbf95dc..750870e11e3 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.util.Map; import org.openapitools.model.Order; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApiDelegate.java index 827d94d5b02..fe87b0dcd56 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/StoreApiDelegate.java @@ -5,6 +5,7 @@ import org.openapitools.model.Order; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java index 75e4c52b1da..36c1e715423 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApi.java @@ -8,6 +8,7 @@ package org.openapitools.api; import java.time.OffsetDateTime; import org.openapitools.model.User; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApiDelegate.java index 54f66378f57..37c57bfdee7 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/UserApiDelegate.java @@ -5,6 +5,7 @@ import org.openapitools.model.User; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/VersioningApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/VersioningApi.java index b1a099bade7..10eb7a1525f 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/VersioningApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/VersioningApi.java @@ -7,6 +7,7 @@ package org.openapitools.api; import org.openapitools.model.ModelApiResponse; import io.swagger.annotations.*; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/VersioningApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/VersioningApiDelegate.java index a7b744cc73b..fedd4b73920 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/VersioningApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/VersioningApiDelegate.java @@ -4,6 +4,7 @@ import org.openapitools.model.ModelApiResponse; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; +import org.springframework.lang.Nullable; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 25e7edc6691..773291ab5b9 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesAnyType { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index f64b28e8321..5e3b764af70 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesArray { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index d4ccb3cac52..c57bccf770d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesBoolean { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 2872ccbec82..2589c1018d8 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -281,7 +281,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -293,15 +293,15 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@Nullable Object anytype2) { this.anytype2 = anytype2; return this; } @@ -313,15 +313,15 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_2") - public Object getAnytype2() { + public @Nullable Object getAnytype2() { return anytype2; } - public void setAnytype2(Object anytype2) { + public void setAnytype2(@Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -333,11 +333,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 4e023e5ac23..94a8cbcd6a6 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesInteger { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 4925911430d..ff57a4c1964 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesNumber { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 8271f56b65e..deeb9fdddd0 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesObject { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 2ee8c696843..8753cbaea4f 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesString { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Capitalization.java index fd0137b5329..fd49ed0ccec 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Capitalization.java @@ -35,7 +35,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -47,15 +47,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -67,15 +67,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -87,15 +87,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -107,15 +107,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -127,15 +127,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -147,11 +147,11 @@ public class Capitalization { @ApiModelProperty(value = "Name of the pet ") @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Cat.java index 1c38c1290c4..5ccb4eaba50 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Cat.java @@ -41,7 +41,7 @@ public class Cat extends Animal { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -53,11 +53,11 @@ public class Cat extends Animal { @ApiModelProperty(value = "") @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Category.java index 98bde299616..4fda94ab15c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Category.java @@ -38,7 +38,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public class Category { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ClassModel.java index 4e03cee749d..e46e0267220 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ClassModel.java @@ -26,7 +26,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -38,11 +38,11 @@ public class ClassModel { @ApiModelProperty(value = "") @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Client.java index 3f16a03fdf6..133345b58de 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Client.java @@ -25,7 +25,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -37,11 +37,11 @@ public class Client { @ApiModelProperty(value = "") @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Dog.java index f9df4db3878..dc8dcaaac34 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Dog.java @@ -41,7 +41,7 @@ public class Dog extends Animal { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public class Dog extends Animal { @ApiModelProperty(value = "") @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumArrays.java index 9773ea49467..6a1419957ed 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumArrays.java @@ -102,7 +102,7 @@ public class EnumArrays { @Valid private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -114,11 +114,11 @@ public class EnumArrays { @ApiModelProperty(value = "") @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java index 61abd2bd5d4..2da9188ff1c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java @@ -192,7 +192,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -232,7 +232,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -264,15 +264,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -284,11 +284,11 @@ public class EnumTest { @Valid @ApiModelProperty(value = "") @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/File.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/File.java index ed0112b13ad..f749c4954d5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/File.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/File.java @@ -26,7 +26,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -38,11 +38,11 @@ public class File { @ApiModelProperty(value = "Test capitalization") @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 426e7f1f735..344b4ab1364 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -32,7 +32,7 @@ public class FileSchemaTestClass { @Valid private List<@Valid File> files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -44,11 +44,11 @@ public class FileSchemaTestClass { @Valid @ApiModelProperty(value = "") @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FormatTest.java index c59ee6475d1..a141053334f 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/FormatTest.java @@ -75,7 +75,7 @@ public class FormatTest { this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public class FormatTest { @Min(10) @Max(100) @ApiModelProperty(value = "") @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -111,15 +111,15 @@ public class FormatTest { @Min(20) @Max(200) @ApiModelProperty(value = "") @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -131,11 +131,11 @@ public class FormatTest { @ApiModelProperty(value = "") @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -161,7 +161,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public class FormatTest { @DecimalMin("54.3") @DecimalMax("987.6") @ApiModelProperty(value = "") @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -197,15 +197,15 @@ public class FormatTest { @DecimalMin("67.8") @DecimalMax("123.4") @ApiModelProperty(value = "") @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -217,11 +217,11 @@ public class FormatTest { @Pattern(regexp = "/[a-z]/i") @ApiModelProperty(value = "") @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -245,7 +245,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -257,11 +257,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -285,7 +285,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -317,11 +317,11 @@ public class FormatTest { @Valid @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -345,7 +345,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index a706e796c8f..32df26a5329 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -29,7 +29,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -41,15 +41,15 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -61,11 +61,11 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 337dfa4d5de..dcc7a5b9165 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,7 +37,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -49,15 +49,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -69,11 +69,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Model200Response.java index 1dba298e44e..03a0d36c22b 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Model200Response.java @@ -30,7 +30,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -42,15 +42,15 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -62,11 +62,11 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelApiResponse.java index 6ba366ec528..a47a3421a48 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelList.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelList.java index dc06c29116f..cdc49aefdb5 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelList.java @@ -27,7 +27,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -39,11 +39,11 @@ public class ModelList { @ApiModelProperty(value = "") @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelReturn.java index 959ff9d7995..e23f9b70f1e 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ModelReturn.java @@ -28,7 +28,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -40,11 +40,11 @@ public class ModelReturn { @ApiModelProperty(value = "") @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Name.java index ce1f39d59bf..5708fa3147e 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Name.java @@ -63,7 +63,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -75,15 +75,15 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -95,15 +95,15 @@ public class Name { @ApiModelProperty(value = "") @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -115,11 +115,11 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/NumberOnly.java index 1660dd78600..99de5c65a70 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/NumberOnly.java @@ -26,7 +26,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -38,11 +38,11 @@ public class NumberOnly { @Valid @ApiModelProperty(value = "") @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Order.java index 713bb66964a..d2c42e403ab 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @ApiModelProperty(value = "Order Status") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterComposite.java index 59c8b16704a..e69df693bed 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/OuterComposite.java @@ -30,7 +30,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -42,15 +42,15 @@ public class OuterComposite { @Valid @ApiModelProperty(value = "") @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -62,15 +62,15 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -82,11 +82,11 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Pet.java index a8cae4716e7..f1a188bbc2d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Pet.java @@ -92,7 +92,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -104,15 +104,15 @@ public class Pet { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -124,11 +124,11 @@ public class Pet { @Valid @ApiModelProperty(value = "") @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -208,7 +208,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -220,11 +220,11 @@ public class Pet { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ReadOnlyFirst.java index ad83db00ffc..15329f8cb12 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -27,7 +27,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -39,15 +39,15 @@ public class ReadOnlyFirst { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -59,11 +59,11 @@ public class ReadOnlyFirst { @ApiModelProperty(value = "") @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/SpecialModelName.java index 3974286e235..f1adbfde805 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/SpecialModelName.java @@ -27,7 +27,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -39,11 +39,11 @@ public class SpecialModelName { @ApiModelProperty(value = "") @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Tag.java index 8e03f47541a..0aa2038f01c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/User.java index 1f4462a7cf4..2dbf6f2f0db 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java index 93db0d19fad..a5f92d54e90 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java @@ -94,7 +94,7 @@ public class XmlItem { @Valid private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -106,15 +106,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -126,15 +126,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -146,15 +146,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -166,11 +166,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -202,7 +202,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -234,15 +234,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -254,15 +254,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -274,11 +274,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -338,7 +338,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -370,15 +370,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -390,15 +390,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -410,11 +410,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -474,7 +474,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -506,15 +506,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -526,15 +526,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -546,11 +546,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -610,7 +610,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -642,15 +642,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -662,15 +662,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -682,11 +682,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index d6f187bd8f9..644b3c76966 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.Client; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java index 7cacbd1ed68..7afbe077af5 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -19,6 +19,7 @@ import org.openapitools.model.XmlItem; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -95,7 +96,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterBooleanSerialize( - @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body + @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) @Nullable Boolean body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -126,7 +127,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterCompositeSerialize( - @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body + @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) @Nullable OuterComposite body ) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -166,7 +167,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterNumberSerialize( - @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body + @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) @Nullable BigDecimal body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -197,7 +198,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -399,12 +400,12 @@ public interface FakeApi { ) default ResponseEntity testEnumParameters( - @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString ) { @@ -443,9 +444,9 @@ public interface FakeApi { @NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 1c4aee0dcc7..54acd6fe00f 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.Client; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java index 394c3253db1..5428a84b081 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java @@ -12,6 +12,7 @@ import org.openapitools.model.Pet; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -102,7 +103,7 @@ public interface PetApi { default ResponseEntity deletePet( @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId, - @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey + @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -201,7 +202,7 @@ public interface PetApi { default ResponseEntity> findPetsByTags( @NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, - @ApiParam(value = "A test HeaderParam for issue #8315 - must NOT be removed when x-spring-paginated:true is used.") @RequestHeader(value = "size", required = false) String size, + @ApiParam(value = "A test HeaderParam for issue #8315 - must NOT be removed when x-spring-paginated:true is used.") @RequestHeader(value = "size", required = false) @Nullable String size, @ApiIgnore final Pageable pageable ) { getRequest().ifPresent(request -> { diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java index c544ff9cfb1..32e33fca3de 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.Order; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java index d21103f0cc0..a4d5fac2021 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/UserApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.User; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/VersioningApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/VersioningApi.java index 8f85a3c20cf..84f2e532f87 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/VersioningApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/VersioningApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.ModelApiResponse; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 25e7edc6691..773291ab5b9 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesAnyType { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index f64b28e8321..5e3b764af70 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesArray { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index d4ccb3cac52..c57bccf770d 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesBoolean { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 2872ccbec82..2589c1018d8 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -281,7 +281,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -293,15 +293,15 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@Nullable Object anytype2) { this.anytype2 = anytype2; return this; } @@ -313,15 +313,15 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_2") - public Object getAnytype2() { + public @Nullable Object getAnytype2() { return anytype2; } - public void setAnytype2(Object anytype2) { + public void setAnytype2(@Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -333,11 +333,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 4e023e5ac23..94a8cbcd6a6 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesInteger { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 4925911430d..ff57a4c1964 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesNumber { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 8271f56b65e..deeb9fdddd0 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesObject { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 2ee8c696843..8753cbaea4f 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesString { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Capitalization.java index fd0137b5329..fd49ed0ccec 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Capitalization.java @@ -35,7 +35,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -47,15 +47,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -67,15 +67,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -87,15 +87,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -107,15 +107,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -127,15 +127,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -147,11 +147,11 @@ public class Capitalization { @ApiModelProperty(value = "Name of the pet ") @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Cat.java index 1c38c1290c4..5ccb4eaba50 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Cat.java @@ -41,7 +41,7 @@ public class Cat extends Animal { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -53,11 +53,11 @@ public class Cat extends Animal { @ApiModelProperty(value = "") @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Category.java index 98bde299616..4fda94ab15c 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Category.java @@ -38,7 +38,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public class Category { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ClassModel.java index 4e03cee749d..e46e0267220 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ClassModel.java @@ -26,7 +26,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -38,11 +38,11 @@ public class ClassModel { @ApiModelProperty(value = "") @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Client.java index 3f16a03fdf6..133345b58de 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Client.java @@ -25,7 +25,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -37,11 +37,11 @@ public class Client { @ApiModelProperty(value = "") @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Dog.java index f9df4db3878..dc8dcaaac34 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Dog.java @@ -41,7 +41,7 @@ public class Dog extends Animal { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public class Dog extends Animal { @ApiModelProperty(value = "") @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumArrays.java index 9773ea49467..6a1419957ed 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumArrays.java @@ -102,7 +102,7 @@ public class EnumArrays { @Valid private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -114,11 +114,11 @@ public class EnumArrays { @ApiModelProperty(value = "") @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java index 61abd2bd5d4..2da9188ff1c 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java @@ -192,7 +192,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -232,7 +232,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -264,15 +264,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -284,11 +284,11 @@ public class EnumTest { @Valid @ApiModelProperty(value = "") @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/File.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/File.java index ed0112b13ad..f749c4954d5 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/File.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/File.java @@ -26,7 +26,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -38,11 +38,11 @@ public class File { @ApiModelProperty(value = "Test capitalization") @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 426e7f1f735..344b4ab1364 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -32,7 +32,7 @@ public class FileSchemaTestClass { @Valid private List<@Valid File> files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -44,11 +44,11 @@ public class FileSchemaTestClass { @Valid @ApiModelProperty(value = "") @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FormatTest.java index c59ee6475d1..a141053334f 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/FormatTest.java @@ -75,7 +75,7 @@ public class FormatTest { this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public class FormatTest { @Min(10) @Max(100) @ApiModelProperty(value = "") @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -111,15 +111,15 @@ public class FormatTest { @Min(20) @Max(200) @ApiModelProperty(value = "") @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -131,11 +131,11 @@ public class FormatTest { @ApiModelProperty(value = "") @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -161,7 +161,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public class FormatTest { @DecimalMin("54.3") @DecimalMax("987.6") @ApiModelProperty(value = "") @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -197,15 +197,15 @@ public class FormatTest { @DecimalMin("67.8") @DecimalMax("123.4") @ApiModelProperty(value = "") @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -217,11 +217,11 @@ public class FormatTest { @Pattern(regexp = "/[a-z]/i") @ApiModelProperty(value = "") @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -245,7 +245,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -257,11 +257,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -285,7 +285,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -317,11 +317,11 @@ public class FormatTest { @Valid @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -345,7 +345,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index a706e796c8f..32df26a5329 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -29,7 +29,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -41,15 +41,15 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -61,11 +61,11 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 337dfa4d5de..dcc7a5b9165 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,7 +37,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -49,15 +49,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -69,11 +69,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Model200Response.java index 1dba298e44e..03a0d36c22b 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Model200Response.java @@ -30,7 +30,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -42,15 +42,15 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -62,11 +62,11 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java index 6ba366ec528..a47a3421a48 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelList.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelList.java index dc06c29116f..cdc49aefdb5 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelList.java @@ -27,7 +27,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -39,11 +39,11 @@ public class ModelList { @ApiModelProperty(value = "") @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelReturn.java index 959ff9d7995..e23f9b70f1e 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ModelReturn.java @@ -28,7 +28,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -40,11 +40,11 @@ public class ModelReturn { @ApiModelProperty(value = "") @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Name.java index ce1f39d59bf..5708fa3147e 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Name.java @@ -63,7 +63,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -75,15 +75,15 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -95,15 +95,15 @@ public class Name { @ApiModelProperty(value = "") @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -115,11 +115,11 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/NumberOnly.java index 1660dd78600..99de5c65a70 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/NumberOnly.java @@ -26,7 +26,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -38,11 +38,11 @@ public class NumberOnly { @Valid @ApiModelProperty(value = "") @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Order.java index 713bb66964a..d2c42e403ab 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @ApiModelProperty(value = "Order Status") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterComposite.java index 59c8b16704a..e69df693bed 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/OuterComposite.java @@ -30,7 +30,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -42,15 +42,15 @@ public class OuterComposite { @Valid @ApiModelProperty(value = "") @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -62,15 +62,15 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -82,11 +82,11 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Pet.java index a8cae4716e7..f1a188bbc2d 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Pet.java @@ -92,7 +92,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -104,15 +104,15 @@ public class Pet { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -124,11 +124,11 @@ public class Pet { @Valid @ApiModelProperty(value = "") @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -208,7 +208,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -220,11 +220,11 @@ public class Pet { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java index ad83db00ffc..15329f8cb12 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -27,7 +27,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -39,15 +39,15 @@ public class ReadOnlyFirst { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -59,11 +59,11 @@ public class ReadOnlyFirst { @ApiModelProperty(value = "") @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java index 3974286e235..f1adbfde805 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/SpecialModelName.java @@ -27,7 +27,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -39,11 +39,11 @@ public class SpecialModelName { @ApiModelProperty(value = "") @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Tag.java index 8e03f47541a..0aa2038f01c 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/User.java index 1f4462a7cf4..2dbf6f2f0db 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java index 93db0d19fad..a5f92d54e90 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java @@ -94,7 +94,7 @@ public class XmlItem { @Valid private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -106,15 +106,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -126,15 +126,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -146,15 +146,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -166,11 +166,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -202,7 +202,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -234,15 +234,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -254,15 +254,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -274,11 +274,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -338,7 +338,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -370,15 +370,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -390,15 +390,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -410,11 +410,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -474,7 +474,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -506,15 +506,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -526,15 +526,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -546,11 +546,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -610,7 +610,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -642,15 +642,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -662,15 +662,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -682,11 +682,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java index d6f187bd8f9..644b3c76966 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.Client; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java index 7cacbd1ed68..7afbe077af5 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java @@ -19,6 +19,7 @@ import org.openapitools.model.XmlItem; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -95,7 +96,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterBooleanSerialize( - @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body + @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) @Nullable Boolean body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -126,7 +127,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterCompositeSerialize( - @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body + @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) @Nullable OuterComposite body ) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -166,7 +167,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterNumberSerialize( - @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body + @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) @Nullable BigDecimal body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -197,7 +198,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -399,12 +400,12 @@ public interface FakeApi { ) default ResponseEntity testEnumParameters( - @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString ) { @@ -443,9 +444,9 @@ public interface FakeApi { @NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 1c4aee0dcc7..54acd6fe00f 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.Client; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java index 394c3253db1..5428a84b081 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/PetApi.java @@ -12,6 +12,7 @@ import org.openapitools.model.Pet; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -102,7 +103,7 @@ public interface PetApi { default ResponseEntity deletePet( @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId, - @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey + @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -201,7 +202,7 @@ public interface PetApi { default ResponseEntity> findPetsByTags( @NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List tags, - @ApiParam(value = "A test HeaderParam for issue #8315 - must NOT be removed when x-spring-paginated:true is used.") @RequestHeader(value = "size", required = false) String size, + @ApiParam(value = "A test HeaderParam for issue #8315 - must NOT be removed when x-spring-paginated:true is used.") @RequestHeader(value = "size", required = false) @Nullable String size, @ApiIgnore final Pageable pageable ) { getRequest().ifPresent(request -> { diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java index c544ff9cfb1..32e33fca3de 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/StoreApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.Order; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java index d21103f0cc0..a4d5fac2021 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/UserApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.User; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/VersioningApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/VersioningApi.java index 7b9766121c8..8f7e1b7537d 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/VersioningApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/VersioningApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.ModelApiResponse; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 25e7edc6691..773291ab5b9 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesAnyType { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index f64b28e8321..5e3b764af70 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesArray { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index d4ccb3cac52..c57bccf770d 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesBoolean { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 2872ccbec82..2589c1018d8 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -281,7 +281,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -293,15 +293,15 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@Nullable Object anytype2) { this.anytype2 = anytype2; return this; } @@ -313,15 +313,15 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_2") - public Object getAnytype2() { + public @Nullable Object getAnytype2() { return anytype2; } - public void setAnytype2(Object anytype2) { + public void setAnytype2(@Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -333,11 +333,11 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 4e023e5ac23..94a8cbcd6a6 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesInteger { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 4925911430d..ff57a4c1964 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesNumber { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 8271f56b65e..deeb9fdddd0 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -30,7 +30,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -42,11 +42,11 @@ public class AdditionalPropertiesObject { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 2ee8c696843..8753cbaea4f 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesString { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java index fd0137b5329..fd49ed0ccec 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Capitalization.java @@ -35,7 +35,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -47,15 +47,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -67,15 +67,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -87,15 +87,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -107,15 +107,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -127,15 +127,15 @@ public class Capitalization { @ApiModelProperty(value = "") @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -147,11 +147,11 @@ public class Capitalization { @ApiModelProperty(value = "Name of the pet ") @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Cat.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Cat.java index 1c38c1290c4..5ccb4eaba50 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Cat.java @@ -41,7 +41,7 @@ public class Cat extends Animal { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -53,11 +53,11 @@ public class Cat extends Animal { @ApiModelProperty(value = "") @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Category.java index 98bde299616..4fda94ab15c 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Category.java @@ -38,7 +38,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public class Category { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java index 4e03cee749d..e46e0267220 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ClassModel.java @@ -26,7 +26,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -38,11 +38,11 @@ public class ClassModel { @ApiModelProperty(value = "") @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Client.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Client.java index 3f16a03fdf6..133345b58de 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Client.java @@ -25,7 +25,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -37,11 +37,11 @@ public class Client { @ApiModelProperty(value = "") @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Dog.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Dog.java index f9df4db3878..dc8dcaaac34 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Dog.java @@ -41,7 +41,7 @@ public class Dog extends Animal { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public class Dog extends Animal { @ApiModelProperty(value = "") @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java index 9773ea49467..6a1419957ed 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumArrays.java @@ -102,7 +102,7 @@ public class EnumArrays { @Valid private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -114,11 +114,11 @@ public class EnumArrays { @ApiModelProperty(value = "") @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java index 61abd2bd5d4..2da9188ff1c 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java @@ -192,7 +192,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -232,7 +232,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -264,15 +264,15 @@ public class EnumTest { @ApiModelProperty(value = "") @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -284,11 +284,11 @@ public class EnumTest { @Valid @ApiModelProperty(value = "") @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/File.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/File.java index ed0112b13ad..f749c4954d5 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/File.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/File.java @@ -26,7 +26,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -38,11 +38,11 @@ public class File { @ApiModelProperty(value = "Test capitalization") @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 426e7f1f735..344b4ab1364 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -32,7 +32,7 @@ public class FileSchemaTestClass { @Valid private List<@Valid File> files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -44,11 +44,11 @@ public class FileSchemaTestClass { @Valid @ApiModelProperty(value = "") @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java index c59ee6475d1..a141053334f 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/FormatTest.java @@ -75,7 +75,7 @@ public class FormatTest { this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public class FormatTest { @Min(10) @Max(100) @ApiModelProperty(value = "") @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -111,15 +111,15 @@ public class FormatTest { @Min(20) @Max(200) @ApiModelProperty(value = "") @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -131,11 +131,11 @@ public class FormatTest { @ApiModelProperty(value = "") @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -161,7 +161,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public class FormatTest { @DecimalMin("54.3") @DecimalMax("987.6") @ApiModelProperty(value = "") @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -197,15 +197,15 @@ public class FormatTest { @DecimalMin("67.8") @DecimalMax("123.4") @ApiModelProperty(value = "") @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -217,11 +217,11 @@ public class FormatTest { @Pattern(regexp = "/[a-z]/i") @ApiModelProperty(value = "") @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -245,7 +245,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -257,11 +257,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -285,7 +285,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -317,11 +317,11 @@ public class FormatTest { @Valid @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -345,7 +345,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public class FormatTest { @Valid @ApiModelProperty(value = "") @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index a706e796c8f..32df26a5329 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -29,7 +29,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -41,15 +41,15 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -61,11 +61,11 @@ public class HasOnlyReadOnly { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 337dfa4d5de..dcc7a5b9165 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,7 +37,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -49,15 +49,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -69,11 +69,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java index 1dba298e44e..03a0d36c22b 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Model200Response.java @@ -30,7 +30,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -42,15 +42,15 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -62,11 +62,11 @@ public class Model200Response { @ApiModelProperty(value = "") @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java index 6ba366ec528..a47a3421a48 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -31,7 +31,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ModelApiResponse { @ApiModelProperty(value = "") @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelList.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelList.java index dc06c29116f..cdc49aefdb5 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelList.java @@ -27,7 +27,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -39,11 +39,11 @@ public class ModelList { @ApiModelProperty(value = "") @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java index 959ff9d7995..e23f9b70f1e 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ModelReturn.java @@ -28,7 +28,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -40,11 +40,11 @@ public class ModelReturn { @ApiModelProperty(value = "") @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Name.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Name.java index ce1f39d59bf..5708fa3147e 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Name.java @@ -63,7 +63,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -75,15 +75,15 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -95,15 +95,15 @@ public class Name { @ApiModelProperty(value = "") @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -115,11 +115,11 @@ public class Name { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java index 1660dd78600..99de5c65a70 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/NumberOnly.java @@ -26,7 +26,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -38,11 +38,11 @@ public class NumberOnly { @Valid @ApiModelProperty(value = "") @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Order.java index 713bb66964a..d2c42e403ab 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Order.java @@ -76,7 +76,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -88,15 +88,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -108,15 +108,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -128,15 +128,15 @@ public class Order { @ApiModelProperty(value = "") @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -148,15 +148,15 @@ public class Order { @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -168,11 +168,11 @@ public class Order { @ApiModelProperty(value = "Order Status") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java index 59c8b16704a..e69df693bed 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/OuterComposite.java @@ -30,7 +30,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -42,15 +42,15 @@ public class OuterComposite { @Valid @ApiModelProperty(value = "") @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -62,15 +62,15 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -82,11 +82,11 @@ public class OuterComposite { @ApiModelProperty(value = "") @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Pet.java index a8cae4716e7..f1a188bbc2d 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Pet.java @@ -92,7 +92,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -104,15 +104,15 @@ public class Pet { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -124,11 +124,11 @@ public class Pet { @Valid @ApiModelProperty(value = "") @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -208,7 +208,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -220,11 +220,11 @@ public class Pet { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java index ad83db00ffc..15329f8cb12 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -27,7 +27,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -39,15 +39,15 @@ public class ReadOnlyFirst { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -59,11 +59,11 @@ public class ReadOnlyFirst { @ApiModelProperty(value = "") @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java index 3974286e235..f1adbfde805 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/SpecialModelName.java @@ -27,7 +27,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -39,11 +39,11 @@ public class SpecialModelName { @ApiModelProperty(value = "") @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Tag.java index 8e03f47541a..0aa2038f01c 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/Tag.java @@ -27,7 +27,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -39,15 +39,15 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -59,11 +59,11 @@ public class Tag { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/User.java index 1f4462a7cf4..2dbf6f2f0db 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/User.java @@ -39,7 +39,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -71,15 +71,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -91,15 +91,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -111,15 +111,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -131,15 +131,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -151,15 +151,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -171,15 +171,15 @@ public class User { @ApiModelProperty(value = "") @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -191,11 +191,11 @@ public class User { @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java index 93db0d19fad..a5f92d54e90 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java @@ -94,7 +94,7 @@ public class XmlItem { @Valid private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -106,15 +106,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -126,15 +126,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -146,15 +146,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -166,11 +166,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -202,7 +202,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -234,15 +234,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -254,15 +254,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -274,11 +274,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -338,7 +338,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -370,15 +370,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -390,15 +390,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -410,11 +410,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -474,7 +474,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -506,15 +506,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -526,15 +526,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -546,11 +546,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -610,7 +610,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public class XmlItem { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -642,15 +642,15 @@ public class XmlItem { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -662,15 +662,15 @@ public class XmlItem { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -682,11 +682,11 @@ public class XmlItem { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/api/UserApi.java index f3b4380482e..919b7720b33 100644 --- a/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/api/UserApi.java @@ -25,6 +25,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/Category.java b/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/Category.java index d64c22621a7..a031551d81a 100644 --- a/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/Category.java @@ -26,7 +26,7 @@ public class Category { private @Nullable String name; - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -38,15 +38,15 @@ public class Category { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@Nullable String name) { this.name = name; return this; } @@ -58,11 +58,11 @@ public class Category { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/ModelApiResponse.java index 159c9942618..53239483e97 100644 --- a/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -30,7 +30,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -42,15 +42,15 @@ public class ModelApiResponse { @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -62,15 +62,15 @@ public class ModelApiResponse { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -82,11 +82,11 @@ public class ModelApiResponse { @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/Order.java b/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/Order.java index 9e80fbd4f45..5cd296037da 100644 --- a/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/Order.java @@ -75,7 +75,7 @@ public class Order { private @Nullable Boolean complete; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -87,15 +87,15 @@ public class Order { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -107,15 +107,15 @@ public class Order { @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -127,15 +127,15 @@ public class Order { @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -147,15 +147,15 @@ public class Order { @Valid @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -167,15 +167,15 @@ public class Order { @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@Nullable Boolean complete) { this.complete = complete; return this; } @@ -187,11 +187,11 @@ public class Order { @Schema(name = "complete", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("complete") - public Boolean getComplete() { + public @Nullable Boolean getComplete() { return complete; } - public void setComplete(Boolean complete) { + public void setComplete(@Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/Pet.java index 0eab9f34e79..ec4be865e9b 100644 --- a/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/Pet.java @@ -91,7 +91,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -103,15 +103,15 @@ public class Pet { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -123,11 +123,11 @@ public class Pet { @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -207,7 +207,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -219,11 +219,11 @@ public class Pet { @Schema(name = "status", description = "pet status in the store", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/Tag.java b/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/Tag.java index f7dd6a14494..e8b67439e58 100644 --- a/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/Tag.java @@ -26,7 +26,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -38,15 +38,15 @@ public class Tag { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -58,11 +58,11 @@ public class Tag { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/User.java b/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/User.java index 98c76f55ce9..a56fd230247 100644 --- a/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/User.java +++ b/samples/server/petstore/springboot-spring-provide-args/src/main/java/org/openapitools/model/User.java @@ -38,7 +38,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -50,15 +50,15 @@ public class User { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -70,15 +70,15 @@ public class User { @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -90,15 +90,15 @@ public class User { @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -110,15 +110,15 @@ public class User { @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -130,15 +130,15 @@ public class User { @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -150,15 +150,15 @@ public class User { @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -170,15 +170,15 @@ public class User { @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -190,11 +190,11 @@ public class User { @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java index 11b27787482..19216bce9fa 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.Client; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java index 907e29eb80e..c4dafcc55eb 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java @@ -21,6 +21,7 @@ import org.openapitools.model.XmlItem; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 888f4b118ab..ce0c01322a3 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.Client; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java index 09899e99387..8d4935125ac 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java @@ -11,6 +11,7 @@ import java.util.Set; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java index da1b1ec7186..4e10b2ec59d 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.Order; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java index 0448069b51b..d5689ca159c 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.User; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java index ed24327fe19..fc6d2944ab5 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java @@ -22,6 +22,7 @@ import io.virtualan.annotation.ApiVirtual; import io.virtualan.annotation.VirtualService; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java index f0d046c53c8..73ef732f616 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java @@ -34,6 +34,7 @@ import io.virtualan.annotation.ApiVirtual; import io.virtualan.annotation.VirtualService; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -114,7 +115,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterBooleanSerialize( - @Parameter(name = "body", description = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body + @Parameter(name = "body", description = "Input boolean as post body") @Valid @RequestBody(required = false) @Nullable Boolean body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -147,7 +148,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterCompositeSerialize( - @Parameter(name = "OuterComposite", description = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite outerComposite + @Parameter(name = "OuterComposite", description = "Input composite as post body") @Valid @RequestBody(required = false) @Nullable OuterComposite outerComposite ) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -189,7 +190,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterNumberSerialize( - @Parameter(name = "body", description = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body + @Parameter(name = "body", description = "Input number as post body") @Valid @RequestBody(required = false) @Nullable BigDecimal body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -222,7 +223,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterStringSerialize( - @Parameter(name = "body", description = "Input string as post body") @Valid @RequestBody(required = false) String body + @Parameter(name = "body", description = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -466,12 +467,12 @@ public interface FakeApi { ) default ResponseEntity testEnumParameters( - @Parameter(name = "enum_header_string_array", description = "Header parameter enum test (string array)", in = ParameterIn.HEADER) @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @Parameter(name = "enum_header_string_array", description = "Header parameter enum test (string array)", in = ParameterIn.HEADER) @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @Parameter(name = "enum_header_string", description = "Header parameter enum test (string)", in = ParameterIn.HEADER) @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @Parameter(name = "enum_query_string_array", description = "Query parameter enum test (string array)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @Parameter(name = "enum_query_string_array", description = "Query parameter enum test (string array)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @Parameter(name = "enum_query_string", description = "Query parameter enum test (string)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @Parameter(name = "enum_query_integer", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @Parameter(name = "enum_query_double", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @Parameter(name = "enum_query_integer", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @Parameter(name = "enum_query_double", description = "Query parameter enum test (double)", in = ParameterIn.QUERY) @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @Parameter(name = "enum_form_string_array", description = "Form parameter enum test (string array)") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @Parameter(name = "enum_form_string", description = "Form parameter enum test (string)") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString ) { @@ -511,9 +512,9 @@ public interface FakeApi { @NotNull @Parameter(name = "required_string_group", description = "Required String in group parameters", required = true, in = ParameterIn.QUERY) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @Parameter(name = "required_boolean_group", description = "Required Boolean in group parameters", required = true, in = ParameterIn.HEADER) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @NotNull @Parameter(name = "required_int64_group", description = "Required Integer in group parameters", required = true, in = ParameterIn.QUERY) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @Parameter(name = "string_group", description = "String in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @Parameter(name = "boolean_group", description = "Boolean in group parameters", in = ParameterIn.HEADER) @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @Parameter(name = "int64_group", description = "Integer in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + @Parameter(name = "string_group", description = "String in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @Parameter(name = "boolean_group", description = "Boolean in group parameters", in = ParameterIn.HEADER) @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @Parameter(name = "int64_group", description = "Integer in group parameters", in = ParameterIn.QUERY) @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java index 60b9359c324..c34d0aa6dc2 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java @@ -22,6 +22,7 @@ import io.virtualan.annotation.ApiVirtual; import io.virtualan.annotation.VirtualService; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java index 618af63bbe0..2717f4be48c 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java @@ -24,6 +24,7 @@ import io.virtualan.annotation.ApiVirtual; import io.virtualan.annotation.VirtualService; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -113,7 +114,7 @@ public interface PetApi { default ResponseEntity deletePet( @Parameter(name = "petId", description = "Pet id to delete", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId, - @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) String apiKey + @Parameter(name = "api_key", description = "", in = ParameterIn.HEADER) @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java index f9f9b03a46a..f5bb1c6ede4 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java @@ -23,6 +23,7 @@ import io.virtualan.annotation.ApiVirtual; import io.virtualan.annotation.VirtualService; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java index 6fc4b46cc38..26935cab59b 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java @@ -23,6 +23,7 @@ import io.virtualan.annotation.ApiVirtual; import io.virtualan.annotation.VirtualService; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesAnyType.java index bcdcd9708f6..64831ee0d5e 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesAnyType.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesAnyType { private @Nullable String name; - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesAnyType { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesArray.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesArray.java index ffacc75fd1f..bdadb8baa03 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesArray.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesArray { private @Nullable String name; - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesArray { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesBoolean.java index 412d6c37c19..9eb5692c9f3 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesBoolean.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesBoolean { private @Nullable String name; - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesBoolean { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java index d141cfa24fa..0aa96a00be9 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java @@ -283,7 +283,7 @@ public class AdditionalPropertiesClass { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -295,11 +295,11 @@ public class AdditionalPropertiesClass { @Schema(name = "anytype_1", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } @@ -323,7 +323,7 @@ public class AdditionalPropertiesClass { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -335,11 +335,11 @@ public class AdditionalPropertiesClass { @Schema(name = "anytype_3", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesInteger.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesInteger.java index 381fce5a53a..1117f1d6089 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesInteger.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesInteger { private @Nullable String name; - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesInteger { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesNumber.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesNumber.java index ff99ab35528..e0382f90319 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesNumber.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesNumber { private @Nullable String name; - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesNumber { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesObject.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesObject.java index 4546f0e714c..d89fbdb58e0 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesObject.java @@ -29,7 +29,7 @@ public class AdditionalPropertiesObject { private @Nullable String name; - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -41,11 +41,11 @@ public class AdditionalPropertiesObject { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesString.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesString.java index 724cc597b54..bcd804b5553 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesString.java @@ -28,7 +28,7 @@ public class AdditionalPropertiesString { private @Nullable String name; - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -40,11 +40,11 @@ public class AdditionalPropertiesString { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java index f060c2b2993..8b270de5f46 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java @@ -80,7 +80,7 @@ public class BigCat extends Cat { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -92,11 +92,11 @@ public class BigCat extends Cat { @Schema(name = "kind", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Capitalization.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Capitalization.java index 4a936ba43ad..7f1b0fcc60d 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Capitalization.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Capitalization.java @@ -34,7 +34,7 @@ public class Capitalization { private @Nullable String ATT_NAME; - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -46,15 +46,15 @@ public class Capitalization { @Schema(name = "smallCamel", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -66,15 +66,15 @@ public class Capitalization { @Schema(name = "CapitalCamel", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -86,15 +86,15 @@ public class Capitalization { @Schema(name = "small_Snake", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -106,15 +106,15 @@ public class Capitalization { @Schema(name = "Capital_Snake", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -126,15 +126,15 @@ public class Capitalization { @Schema(name = "SCA_ETH_Flow_Points", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -146,11 +146,11 @@ public class Capitalization { @Schema(name = "ATT_NAME", description = "Name of the pet ", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Cat.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Cat.java index d994e5f9066..eb82ccb3b1a 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Cat.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Cat.java @@ -48,7 +48,7 @@ public class Cat extends Animal { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -60,11 +60,11 @@ public class Cat extends Animal { @Schema(name = "declawed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Category.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Category.java index 5e702570ef5..b0848ce5c0f 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Category.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Category.java @@ -37,7 +37,7 @@ public class Category { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -49,11 +49,11 @@ public class Category { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ChildWithNullable.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ChildWithNullable.java index c330ed998aa..71d49b5e272 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ChildWithNullable.java @@ -32,7 +32,7 @@ public class ChildWithNullable extends ParentWithNullable { private @Nullable String otherProperty; - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -44,11 +44,11 @@ public class ChildWithNullable extends ParentWithNullable { @Schema(name = "otherProperty", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ClassModel.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ClassModel.java index c983a118dd0..12e0278c1ed 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ClassModel.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ClassModel.java @@ -25,7 +25,7 @@ public class ClassModel { private @Nullable String propertyClass; - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -37,11 +37,11 @@ public class ClassModel { @Schema(name = "_class", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Client.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Client.java index 6cd3765df80..2bab1215866 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Client.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Client.java @@ -24,7 +24,7 @@ public class Client { private @Nullable String client; - public Client client(String client) { + public Client client(@Nullable String client) { this.client = client; return this; } @@ -36,11 +36,11 @@ public class Client { @Schema(name = "client", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Dog.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Dog.java index 405ff3a2f8d..9607ab9e67c 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Dog.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Dog.java @@ -40,7 +40,7 @@ public class Dog extends Animal { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -52,11 +52,11 @@ public class Dog extends Animal { @Schema(name = "breed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumArrays.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumArrays.java index 1288cd481b6..b11ea6a46be 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumArrays.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumArrays.java @@ -101,7 +101,7 @@ public class EnumArrays { @Valid private List arrayEnum = new ArrayList<>(); - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -113,11 +113,11 @@ public class EnumArrays { @Schema(name = "just_symbol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java index 17a1373944f..9179aea5dda 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java @@ -191,7 +191,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -203,11 +203,11 @@ public class EnumTest { @Schema(name = "enum_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -231,7 +231,7 @@ public class EnumTest { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -243,15 +243,15 @@ public class EnumTest { @Schema(name = "enum_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -263,15 +263,15 @@ public class EnumTest { @Schema(name = "enum_number", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -283,11 +283,11 @@ public class EnumTest { @Valid @Schema(name = "outerEnum", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("outerEnum") - public OuterEnum getOuterEnum() { + public @Nullable OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/File.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/File.java index f0c3d0c1e37..95fb7a82b1a 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/File.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/File.java @@ -25,7 +25,7 @@ public class File { private @Nullable String sourceURI; - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -37,11 +37,11 @@ public class File { @Schema(name = "sourceURI", description = "Test capitalization", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java index d203e1d91b0..1ddb2fe887c 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java @@ -31,7 +31,7 @@ public class FileSchemaTestClass { @Valid private List<@Valid File> files = new ArrayList<>(); - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -43,11 +43,11 @@ public class FileSchemaTestClass { @Valid @Schema(name = "file", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("file") - public File getFile() { + public @Nullable File getFile() { return file; } - public void setFile(File file) { + public void setFile(@Nullable File file) { this.file = file; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java index 53589dd55d6..8ad02eee348 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java @@ -74,7 +74,7 @@ public class FormatTest { this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -88,15 +88,15 @@ public class FormatTest { @Min(10) @Max(100) @Schema(name = "integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -110,15 +110,15 @@ public class FormatTest { @Min(20) @Max(200) @Schema(name = "int32", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -130,11 +130,11 @@ public class FormatTest { @Schema(name = "int64", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -160,7 +160,7 @@ public class FormatTest { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -174,15 +174,15 @@ public class FormatTest { @DecimalMin("54.3") @DecimalMax("987.6") @Schema(name = "float", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@Nullable Double _double) { this._double = _double; return this; } @@ -196,15 +196,15 @@ public class FormatTest { @DecimalMin("67.8") @DecimalMax("123.4") @Schema(name = "double", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@Nullable String string) { this.string = string; return this; } @@ -216,11 +216,11 @@ public class FormatTest { @Pattern(regexp = "/[a-z]/i") @Schema(name = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -244,7 +244,7 @@ public class FormatTest { this._byte = _byte; } - public FormatTest binary(org.springframework.core.io.Resource binary) { + public FormatTest binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -256,11 +256,11 @@ public class FormatTest { @Valid @Schema(name = "binary", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -284,7 +284,7 @@ public class FormatTest { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -296,15 +296,15 @@ public class FormatTest { @Valid @Schema(name = "dateTime", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -316,11 +316,11 @@ public class FormatTest { @Valid @Schema(name = "uuid", example = "72f98069-206d-4f12-9f12-3d1e525a8e84", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -344,7 +344,7 @@ public class FormatTest { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -356,11 +356,11 @@ public class FormatTest { @Valid @Schema(name = "BigDecimal", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/HasOnlyReadOnly.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/HasOnlyReadOnly.java index 32c27147472..159b3533645 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/HasOnlyReadOnly.java @@ -28,7 +28,7 @@ public class HasOnlyReadOnly { private @Nullable String foo; - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -40,15 +40,15 @@ public class HasOnlyReadOnly { @Schema(name = "bar", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnly foo(String foo) { + public HasOnlyReadOnly foo(@Nullable String foo) { this.foo = foo; return this; } @@ -60,11 +60,11 @@ public class HasOnlyReadOnly { @Schema(name = "foo", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MixedPropertiesAndAdditionalPropertiesClass.java index 86633efced4..b8793571ccc 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -36,7 +36,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -48,15 +48,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @Schema(name = "uuid", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -68,11 +68,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @Valid @Schema(name = "dateTime", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Model200Response.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Model200Response.java index 3ac52472199..b3f90f9ed2a 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Model200Response.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Model200Response.java @@ -29,7 +29,7 @@ public class Model200Response { private @Nullable String propertyClass; - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -41,15 +41,15 @@ public class Model200Response { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -61,11 +61,11 @@ public class Model200Response { @Schema(name = "class", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelApiResponse.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelApiResponse.java index 473efd429dd..8e4342fc725 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelApiResponse.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelApiResponse.java @@ -30,7 +30,7 @@ public class ModelApiResponse { private @Nullable String message; - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -42,15 +42,15 @@ public class ModelApiResponse { @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@Nullable String type) { this.type = type; return this; } @@ -62,15 +62,15 @@ public class ModelApiResponse { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@Nullable String message) { this.message = message; return this; } @@ -82,11 +82,11 @@ public class ModelApiResponse { @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelList.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelList.java index 076188564e1..8a8e49ef8d0 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelList.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelList.java @@ -26,7 +26,7 @@ public class ModelList { private @Nullable String _123list; - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -38,11 +38,11 @@ public class ModelList { @Schema(name = "123-list", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("123-list") - public String get123list() { + public @Nullable String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@Nullable String _123list) { this._123list = _123list; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelReturn.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelReturn.java index f6b0bb8cec6..504129bd8b9 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelReturn.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ModelReturn.java @@ -27,7 +27,7 @@ public class ModelReturn { private @Nullable Integer _return; - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -39,11 +39,11 @@ public class ModelReturn { @Schema(name = "return", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Name.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Name.java index 8e5a40df459..8656a1355a0 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Name.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Name.java @@ -62,7 +62,7 @@ public class Name { this.name = name; } - public Name snakeCase(Integer snakeCase) { + public Name snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -74,15 +74,15 @@ public class Name { @Schema(name = "snake_case", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public Name property(String property) { + public Name property(@Nullable String property) { this.property = property; return this; } @@ -94,15 +94,15 @@ public class Name { @Schema(name = "property", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public Name _123number(Integer _123number) { + public Name _123number(@Nullable Integer _123number) { this._123number = _123number; return this; } @@ -114,11 +114,11 @@ public class Name { @Schema(name = "123Number", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("123Number") - public Integer get123number() { + public @Nullable Integer get123number() { return _123number; } - public void set123number(Integer _123number) { + public void set123number(@Nullable Integer _123number) { this._123number = _123number; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/NumberOnly.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/NumberOnly.java index ca7505a88aa..f9f403c89c8 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/NumberOnly.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/NumberOnly.java @@ -25,7 +25,7 @@ public class NumberOnly { private @Nullable BigDecimal justNumber; - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -37,11 +37,11 @@ public class NumberOnly { @Valid @Schema(name = "JustNumber", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Order.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Order.java index c99b6325dbd..f5e859d719a 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Order.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Order.java @@ -75,7 +75,7 @@ public class Order { private Boolean complete = false; - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -87,15 +87,15 @@ public class Order { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -107,15 +107,15 @@ public class Order { @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -127,15 +127,15 @@ public class Order { @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -147,15 +147,15 @@ public class Order { @Valid @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -167,11 +167,11 @@ public class Order { @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterComposite.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterComposite.java index cd87e84bac2..d1d5a61727a 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterComposite.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/OuterComposite.java @@ -29,7 +29,7 @@ public class OuterComposite { private @Nullable Boolean myBoolean; - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -41,15 +41,15 @@ public class OuterComposite { @Valid @Schema(name = "my_number", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@Nullable String myString) { this.myString = myString; return this; } @@ -61,15 +61,15 @@ public class OuterComposite { @Schema(name = "my_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -81,11 +81,11 @@ public class OuterComposite { @Schema(name = "my_boolean", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ParentWithNullable.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ParentWithNullable.java index 64eceeabd5a..27414353c46 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ParentWithNullable.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ParentWithNullable.java @@ -75,7 +75,7 @@ public class ParentWithNullable { private JsonNullable nullableProperty = JsonNullable.undefined(); - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -87,11 +87,11 @@ public class ParentWithNullable { @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java index 4464fb387e8..d69edf48bce 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java @@ -95,7 +95,7 @@ public class Pet { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -107,15 +107,15 @@ public class Pet { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@Nullable Category category) { this.category = category; return this; } @@ -127,11 +127,11 @@ public class Pet { @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") - public Category getCategory() { + public @Nullable Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@Nullable Category category) { this.category = category; } @@ -212,7 +212,7 @@ public class Pet { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -226,7 +226,7 @@ public class Pet { @Schema(name = "status", description = "pet status in the store", deprecated = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -234,7 +234,7 @@ public class Pet { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ReadOnlyFirst.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ReadOnlyFirst.java index b9507e27242..61568034313 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ReadOnlyFirst.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ReadOnlyFirst.java @@ -26,7 +26,7 @@ public class ReadOnlyFirst { private @Nullable String baz; - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -38,15 +38,15 @@ public class ReadOnlyFirst { @Schema(name = "bar", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@Nullable String baz) { this.baz = baz; return this; } @@ -58,11 +58,11 @@ public class ReadOnlyFirst { @Schema(name = "baz", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ResponseObjectWithDifferentFieldNames.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ResponseObjectWithDifferentFieldNames.java index 6a624ab527a..a3222f29002 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ResponseObjectWithDifferentFieldNames.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ResponseObjectWithDifferentFieldNames.java @@ -30,7 +30,7 @@ public class ResponseObjectWithDifferentFieldNames { private @Nullable String propertyNameWithSpaces; - public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNames normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -42,15 +42,15 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "normalPropertyName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -62,15 +62,15 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "UPPER_CASE_PROPERTY_SNAKE", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -82,15 +82,15 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "lower-case-property-dashes", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -102,11 +102,11 @@ public class ResponseObjectWithDifferentFieldNames { @Schema(name = "property name with spaces", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/SpecialModelName.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/SpecialModelName.java index 75025716e05..c6962824add 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/SpecialModelName.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/SpecialModelName.java @@ -26,7 +26,7 @@ public class SpecialModelName { private @Nullable Long $specialPropertyName; - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -38,11 +38,11 @@ public class SpecialModelName { @Schema(name = "$special[property.name]", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Tag.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Tag.java index 797f001f46b..dfc9833d484 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Tag.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Tag.java @@ -26,7 +26,7 @@ public class Tag { private @Nullable String name; - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -38,15 +38,15 @@ public class Tag { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@Nullable String name) { this.name = name; return this; } @@ -58,11 +58,11 @@ public class Tag { @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/User.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/User.java index 0476d3f2c33..4ecb10bf320 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/User.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/User.java @@ -38,7 +38,7 @@ public class User { private @Nullable Integer userStatus; - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -50,15 +50,15 @@ public class User { @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@Nullable String username) { this.username = username; return this; } @@ -70,15 +70,15 @@ public class User { @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -90,15 +90,15 @@ public class User { @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -110,15 +110,15 @@ public class User { @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@Nullable String email) { this.email = email; return this; } @@ -130,15 +130,15 @@ public class User { @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@Nullable String password) { this.password = password; return this; } @@ -150,15 +150,15 @@ public class User { @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@Nullable String phone) { this.phone = phone; return this; } @@ -170,15 +170,15 @@ public class User { @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -190,11 +190,11 @@ public class User { @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java index 7359dcb9970..fdd2c804d16 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java @@ -93,7 +93,7 @@ public class XmlItem { @Valid private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -105,15 +105,15 @@ public class XmlItem { @Schema(name = "attribute_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -125,15 +125,15 @@ public class XmlItem { @Valid @Schema(name = "attribute_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -145,15 +145,15 @@ public class XmlItem { @Schema(name = "attribute_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -165,11 +165,11 @@ public class XmlItem { @Schema(name = "attribute_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -201,7 +201,7 @@ public class XmlItem { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -213,15 +213,15 @@ public class XmlItem { @Schema(name = "name_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -233,15 +233,15 @@ public class XmlItem { @Valid @Schema(name = "name_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -253,15 +253,15 @@ public class XmlItem { @Schema(name = "name_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -273,11 +273,11 @@ public class XmlItem { @Schema(name = "name_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -337,7 +337,7 @@ public class XmlItem { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -349,15 +349,15 @@ public class XmlItem { @Schema(name = "prefix_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -369,15 +369,15 @@ public class XmlItem { @Valid @Schema(name = "prefix_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -389,15 +389,15 @@ public class XmlItem { @Schema(name = "prefix_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -409,11 +409,11 @@ public class XmlItem { @Schema(name = "prefix_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -473,7 +473,7 @@ public class XmlItem { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -485,15 +485,15 @@ public class XmlItem { @Schema(name = "namespace_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -505,15 +505,15 @@ public class XmlItem { @Valid @Schema(name = "namespace_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -525,15 +525,15 @@ public class XmlItem { @Schema(name = "namespace_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -545,11 +545,11 @@ public class XmlItem { @Schema(name = "namespace_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -609,7 +609,7 @@ public class XmlItem { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -621,15 +621,15 @@ public class XmlItem { @Schema(name = "prefix_ns_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -641,15 +641,15 @@ public class XmlItem { @Valid @Schema(name = "prefix_ns_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -661,15 +661,15 @@ public class XmlItem { @Schema(name = "prefix_ns_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -681,11 +681,11 @@ public class XmlItem { @Schema(name = "prefix_ns_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java index 38e970ec525..c5e04cd7e3a 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.ClientDto; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java index 84d714cc698..06ae789b73b 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java @@ -21,6 +21,7 @@ import org.openapitools.model.XmlItemDto; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -98,7 +99,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterBooleanSerialize( - @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body + @ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) @Nullable Boolean body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -130,7 +131,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterCompositeSerialize( - @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterCompositeDto outerCompositeDto + @ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) @Nullable OuterCompositeDto outerCompositeDto ) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -171,7 +172,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterNumberSerialize( - @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body + @ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) @Nullable BigDecimal body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -203,7 +204,7 @@ public interface FakeApi { ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -444,12 +445,12 @@ public interface FakeApi { ) default ResponseEntity testEnumParameters( - @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List enumHeaderStringArray, + @ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) @Nullable List enumHeaderStringArray, @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, - @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, + @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) @Nullable List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString ) { @@ -488,9 +489,9 @@ public interface FakeApi { @NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup, @NotNull @ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup, @NotNull @ApiParam(value = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group, - @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup, - @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup, - @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group + @ApiParam(value = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup, + @ApiParam(value = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup, + @ApiParam(value = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) @Nullable Long int64Group ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 124c4d6c846..d35b55bdc58 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -9,6 +9,7 @@ import org.openapitools.model.ClientDto; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java index 654c979a206..74c03df139a 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java @@ -11,6 +11,7 @@ import java.util.Set; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -103,7 +104,7 @@ public interface PetApi { default ResponseEntity deletePet( @ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId, - @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey + @ApiParam(value = "") @RequestHeader(value = "api_key", required = false) @Nullable String apiKey ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java index d96806c441f..24ba242e44f 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.OrderDto; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java index a9287f67dc0..2d8a48c3a0d 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java @@ -10,6 +10,7 @@ import org.openapitools.model.UserDto; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.Nullable; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesAnyTypeDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesAnyTypeDto.java index 46a6f64b671..605c4a7d891 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesAnyTypeDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesAnyTypeDto.java @@ -31,7 +31,7 @@ public class AdditionalPropertiesAnyTypeDto { private @Nullable String name; - public AdditionalPropertiesAnyTypeDto name(String name) { + public AdditionalPropertiesAnyTypeDto name(@Nullable String name) { this.name = name; return this; } @@ -43,11 +43,11 @@ public class AdditionalPropertiesAnyTypeDto { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesArrayDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesArrayDto.java index c17815cad74..8adfe2a31a6 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesArrayDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesArrayDto.java @@ -32,7 +32,7 @@ public class AdditionalPropertiesArrayDto { private @Nullable String name; - public AdditionalPropertiesArrayDto name(String name) { + public AdditionalPropertiesArrayDto name(@Nullable String name) { this.name = name; return this; } @@ -44,11 +44,11 @@ public class AdditionalPropertiesArrayDto { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesBooleanDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesBooleanDto.java index f38ba9d1854..e862a5fe28d 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesBooleanDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesBooleanDto.java @@ -31,7 +31,7 @@ public class AdditionalPropertiesBooleanDto { private @Nullable String name; - public AdditionalPropertiesBooleanDto name(String name) { + public AdditionalPropertiesBooleanDto name(@Nullable String name) { this.name = name; return this; } @@ -43,11 +43,11 @@ public class AdditionalPropertiesBooleanDto { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClassDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClassDto.java index ce16f67142b..f0d6031a7f9 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClassDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClassDto.java @@ -286,7 +286,7 @@ public class AdditionalPropertiesClassDto { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClassDto anytype1(Object anytype1) { + public AdditionalPropertiesClassDto anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -298,11 +298,11 @@ public class AdditionalPropertiesClassDto { @ApiModelProperty(value = "") @JsonProperty("anytype_1") - public Object getAnytype1() { + public @Nullable Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; } @@ -326,7 +326,7 @@ public class AdditionalPropertiesClassDto { this.anytype2 = anytype2; } - public AdditionalPropertiesClassDto anytype3(Object anytype3) { + public AdditionalPropertiesClassDto anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -338,11 +338,11 @@ public class AdditionalPropertiesClassDto { @ApiModelProperty(value = "") @JsonProperty("anytype_3") - public Object getAnytype3() { + public @Nullable Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesIntegerDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesIntegerDto.java index d4efa2729c7..a96aea550cd 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesIntegerDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesIntegerDto.java @@ -31,7 +31,7 @@ public class AdditionalPropertiesIntegerDto { private @Nullable String name; - public AdditionalPropertiesIntegerDto name(String name) { + public AdditionalPropertiesIntegerDto name(@Nullable String name) { this.name = name; return this; } @@ -43,11 +43,11 @@ public class AdditionalPropertiesIntegerDto { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesNumberDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesNumberDto.java index 5d681564627..7d35a0cbf11 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesNumberDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesNumberDto.java @@ -32,7 +32,7 @@ public class AdditionalPropertiesNumberDto { private @Nullable String name; - public AdditionalPropertiesNumberDto name(String name) { + public AdditionalPropertiesNumberDto name(@Nullable String name) { this.name = name; return this; } @@ -44,11 +44,11 @@ public class AdditionalPropertiesNumberDto { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesObjectDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesObjectDto.java index e1b65fb4d03..b1dc515791b 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesObjectDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesObjectDto.java @@ -32,7 +32,7 @@ public class AdditionalPropertiesObjectDto { private @Nullable String name; - public AdditionalPropertiesObjectDto name(String name) { + public AdditionalPropertiesObjectDto name(@Nullable String name) { this.name = name; return this; } @@ -44,11 +44,11 @@ public class AdditionalPropertiesObjectDto { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesStringDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesStringDto.java index 874264cbf6b..a9f1a7ac763 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesStringDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesStringDto.java @@ -31,7 +31,7 @@ public class AdditionalPropertiesStringDto { private @Nullable String name; - public AdditionalPropertiesStringDto name(String name) { + public AdditionalPropertiesStringDto name(@Nullable String name) { this.name = name; return this; } @@ -43,11 +43,11 @@ public class AdditionalPropertiesStringDto { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } /** diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ApiResponseDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ApiResponseDto.java index 205e69cb4cd..68f4eac53a1 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ApiResponseDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ApiResponseDto.java @@ -31,7 +31,7 @@ public class ApiResponseDto { private @Nullable String message; - public ApiResponseDto code(Integer code) { + public ApiResponseDto code(@Nullable Integer code) { this.code = code; return this; } @@ -43,15 +43,15 @@ public class ApiResponseDto { @ApiModelProperty(value = "") @JsonProperty("code") - public Integer getCode() { + public @Nullable Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@Nullable Integer code) { this.code = code; } - public ApiResponseDto type(String type) { + public ApiResponseDto type(@Nullable String type) { this.type = type; return this; } @@ -63,15 +63,15 @@ public class ApiResponseDto { @ApiModelProperty(value = "") @JsonProperty("type") - public String getType() { + public @Nullable String getType() { return type; } - public void setType(String type) { + public void setType(@Nullable String type) { this.type = type; } - public ApiResponseDto message(String message) { + public ApiResponseDto message(@Nullable String message) { this.message = message; return this; } @@ -83,11 +83,11 @@ public class ApiResponseDto { @ApiModelProperty(value = "") @JsonProperty("message") - public String getMessage() { + public @Nullable String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@Nullable String message) { this.message = message; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatDto.java index daaa4da2980..750767aa025 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatDto.java @@ -83,7 +83,7 @@ public class BigCatDto extends CatDto { super(className); } - public BigCatDto kind(KindEnum kind) { + public BigCatDto kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -95,11 +95,11 @@ public class BigCatDto extends CatDto { @ApiModelProperty(value = "") @JsonProperty("kind") - public KindEnum getKind() { + public @Nullable KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CapitalizationDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CapitalizationDto.java index 931e99e300a..c6a064d3548 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CapitalizationDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CapitalizationDto.java @@ -37,7 +37,7 @@ public class CapitalizationDto { private @Nullable String ATT_NAME; - public CapitalizationDto smallCamel(String smallCamel) { + public CapitalizationDto smallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -49,15 +49,15 @@ public class CapitalizationDto { @ApiModelProperty(value = "") @JsonProperty("smallCamel") - public String getSmallCamel() { + public @Nullable String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@Nullable String smallCamel) { this.smallCamel = smallCamel; } - public CapitalizationDto capitalCamel(String capitalCamel) { + public CapitalizationDto capitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -69,15 +69,15 @@ public class CapitalizationDto { @ApiModelProperty(value = "") @JsonProperty("CapitalCamel") - public String getCapitalCamel() { + public @Nullable String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public CapitalizationDto smallSnake(String smallSnake) { + public CapitalizationDto smallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -89,15 +89,15 @@ public class CapitalizationDto { @ApiModelProperty(value = "") @JsonProperty("small_Snake") - public String getSmallSnake() { + public @Nullable String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@Nullable String smallSnake) { this.smallSnake = smallSnake; } - public CapitalizationDto capitalSnake(String capitalSnake) { + public CapitalizationDto capitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -109,15 +109,15 @@ public class CapitalizationDto { @ApiModelProperty(value = "") @JsonProperty("Capital_Snake") - public String getCapitalSnake() { + public @Nullable String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public CapitalizationDto scAETHFlowPoints(String scAETHFlowPoints) { + public CapitalizationDto scAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -129,15 +129,15 @@ public class CapitalizationDto { @ApiModelProperty(value = "") @JsonProperty("SCA_ETH_Flow_Points") - public String getScAETHFlowPoints() { + public @Nullable String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public CapitalizationDto ATT_NAME(String ATT_NAME) { + public CapitalizationDto ATT_NAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -149,11 +149,11 @@ public class CapitalizationDto { @ApiModelProperty(value = "Name of the pet ") @JsonProperty("ATT_NAME") - public String getATTNAME() { + public @Nullable String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CatDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CatDto.java index 064bbd3d153..3f8cfff2b39 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CatDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CatDto.java @@ -50,7 +50,7 @@ public class CatDto extends AnimalDto { super(className); } - public CatDto declawed(Boolean declawed) { + public CatDto declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -62,11 +62,11 @@ public class CatDto extends AnimalDto { @ApiModelProperty(value = "") @JsonProperty("declawed") - public Boolean getDeclawed() { + public @Nullable Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CategoryDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CategoryDto.java index 2c54036e28e..25688b3a095 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CategoryDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/CategoryDto.java @@ -40,7 +40,7 @@ public class CategoryDto { this.name = name; } - public CategoryDto id(Long id) { + public CategoryDto id(@Nullable Long id) { this.id = id; return this; } @@ -52,11 +52,11 @@ public class CategoryDto { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ChildWithNullableDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ChildWithNullableDto.java index 6e30596e7ac..b88234169de 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ChildWithNullableDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ChildWithNullableDto.java @@ -35,7 +35,7 @@ public class ChildWithNullableDto extends ParentWithNullableDto { private @Nullable String otherProperty; - public ChildWithNullableDto otherProperty(String otherProperty) { + public ChildWithNullableDto otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -47,11 +47,11 @@ public class ChildWithNullableDto extends ParentWithNullableDto { @ApiModelProperty(value = "") @JsonProperty("otherProperty") - public String getOtherProperty() { + public @Nullable String getOtherProperty() { return otherProperty; } - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClassModelDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClassModelDto.java index 485b9d08ce2..e89c04a5385 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClassModelDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClassModelDto.java @@ -28,7 +28,7 @@ public class ClassModelDto { private @Nullable String propertyClass; - public ClassModelDto propertyClass(String propertyClass) { + public ClassModelDto propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -40,11 +40,11 @@ public class ClassModelDto { @ApiModelProperty(value = "") @JsonProperty("_class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClientDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClientDto.java index e6e094420cb..551e67e7853 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClientDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ClientDto.java @@ -27,7 +27,7 @@ public class ClientDto { private @Nullable String client; - public ClientDto client(String client) { + public ClientDto client(@Nullable String client) { this.client = client; return this; } @@ -39,11 +39,11 @@ public class ClientDto { @ApiModelProperty(value = "") @JsonProperty("client") - public String getClient() { + public @Nullable String getClient() { return client; } - public void setClient(String client) { + public void setClient(@Nullable String client) { this.client = client; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/DogDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/DogDto.java index 8d8be0ad32a..a809e876b52 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/DogDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/DogDto.java @@ -43,7 +43,7 @@ public class DogDto extends AnimalDto { super(className); } - public DogDto breed(String breed) { + public DogDto breed(@Nullable String breed) { this.breed = breed; return this; } @@ -55,11 +55,11 @@ public class DogDto extends AnimalDto { @ApiModelProperty(value = "") @JsonProperty("breed") - public String getBreed() { + public @Nullable String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@Nullable String breed) { this.breed = breed; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumArraysDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumArraysDto.java index 4a79d946581..396bcdee6f3 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumArraysDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumArraysDto.java @@ -104,7 +104,7 @@ public class EnumArraysDto { @Valid private List arrayEnum = new ArrayList<>(); - public EnumArraysDto justSymbol(JustSymbolEnum justSymbol) { + public EnumArraysDto justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -116,11 +116,11 @@ public class EnumArraysDto { @ApiModelProperty(value = "") @JsonProperty("just_symbol") - public JustSymbolEnum getJustSymbol() { + public @Nullable JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTestDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTestDto.java index 72e42e5403a..9f448708fe9 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTestDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTestDto.java @@ -192,7 +192,7 @@ public class EnumTestDto { this.enumStringRequired = enumStringRequired; } - public EnumTestDto enumString(EnumStringEnum enumString) { + public EnumTestDto enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public class EnumTestDto { @ApiModelProperty(value = "") @JsonProperty("enum_string") - public EnumStringEnum getEnumString() { + public @Nullable EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; } @@ -232,7 +232,7 @@ public class EnumTestDto { this.enumStringRequired = enumStringRequired; } - public EnumTestDto enumInteger(EnumIntegerEnum enumInteger) { + public EnumTestDto enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public class EnumTestDto { @ApiModelProperty(value = "") @JsonProperty("enum_integer") - public EnumIntegerEnum getEnumInteger() { + public @Nullable EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTestDto enumNumber(EnumNumberEnum enumNumber) { + public EnumTestDto enumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -264,15 +264,15 @@ public class EnumTestDto { @ApiModelProperty(value = "") @JsonProperty("enum_number") - public EnumNumberEnum getEnumNumber() { + public @Nullable EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTestDto outerEnum(OuterEnumDto outerEnum) { + public EnumTestDto outerEnum(@Nullable OuterEnumDto outerEnum) { this.outerEnum = outerEnum; return this; } @@ -284,11 +284,11 @@ public class EnumTestDto { @Valid @ApiModelProperty(value = "") @JsonProperty("outerEnum") - public OuterEnumDto getOuterEnum() { + public @Nullable OuterEnumDto getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnumDto outerEnum) { + public void setOuterEnum(@Nullable OuterEnumDto outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileDto.java index e6679c18dc8..1b014a80933 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileDto.java @@ -28,7 +28,7 @@ public class FileDto { private @Nullable String sourceURI; - public FileDto sourceURI(String sourceURI) { + public FileDto sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -40,11 +40,11 @@ public class FileDto { @ApiModelProperty(value = "Test capitalization") @JsonProperty("sourceURI") - public String getSourceURI() { + public @Nullable String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClassDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClassDto.java index b49025f7829..ecf436c828f 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClassDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClassDto.java @@ -34,7 +34,7 @@ public class FileSchemaTestClassDto { @Valid private List<@Valid FileDto> files = new ArrayList<>(); - public FileSchemaTestClassDto file(FileDto file) { + public FileSchemaTestClassDto file(@Nullable FileDto file) { this.file = file; return this; } @@ -46,11 +46,11 @@ public class FileSchemaTestClassDto { @Valid @ApiModelProperty(value = "") @JsonProperty("file") - public FileDto getFile() { + public @Nullable FileDto getFile() { return file; } - public void setFile(FileDto file) { + public void setFile(@Nullable FileDto file) { this.file = file; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTestDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTestDto.java index 42b3c7c75df..2257b318987 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTestDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTestDto.java @@ -75,7 +75,7 @@ public class FormatTestDto { this.password = password; } - public FormatTestDto integer(Integer integer) { + public FormatTestDto integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public class FormatTestDto { @Min(10) @Max(100) @ApiModelProperty(value = "") @JsonProperty("integer") - public Integer getInteger() { + public @Nullable Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@Nullable Integer integer) { this.integer = integer; } - public FormatTestDto int32(Integer int32) { + public FormatTestDto int32(@Nullable Integer int32) { this.int32 = int32; return this; } @@ -111,15 +111,15 @@ public class FormatTestDto { @Min(20) @Max(200) @ApiModelProperty(value = "") @JsonProperty("int32") - public Integer getInt32() { + public @Nullable Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@Nullable Integer int32) { this.int32 = int32; } - public FormatTestDto int64(Long int64) { + public FormatTestDto int64(@Nullable Long int64) { this.int64 = int64; return this; } @@ -131,11 +131,11 @@ public class FormatTestDto { @ApiModelProperty(value = "") @JsonProperty("int64") - public Long getInt64() { + public @Nullable Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@Nullable Long int64) { this.int64 = int64; } @@ -161,7 +161,7 @@ public class FormatTestDto { this.number = number; } - public FormatTestDto _float(Float _float) { + public FormatTestDto _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public class FormatTestDto { @DecimalMin("54.3") @DecimalMax("987.6") @ApiModelProperty(value = "") @JsonProperty("float") - public Float getFloat() { + public @Nullable Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@Nullable Float _float) { this._float = _float; } - public FormatTestDto _double(Double _double) { + public FormatTestDto _double(@Nullable Double _double) { this._double = _double; return this; } @@ -197,15 +197,15 @@ public class FormatTestDto { @DecimalMin("67.8") @DecimalMax("123.4") @ApiModelProperty(value = "") @JsonProperty("double") - public Double getDouble() { + public @Nullable Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@Nullable Double _double) { this._double = _double; } - public FormatTestDto string(String string) { + public FormatTestDto string(@Nullable String string) { this.string = string; return this; } @@ -217,11 +217,11 @@ public class FormatTestDto { @Pattern(regexp = "/[a-z]/i") @ApiModelProperty(value = "") @JsonProperty("string") - public String getString() { + public @Nullable String getString() { return string; } - public void setString(String string) { + public void setString(@Nullable String string) { this.string = string; } @@ -245,7 +245,7 @@ public class FormatTestDto { this._byte = _byte; } - public FormatTestDto binary(org.springframework.core.io.Resource binary) { + public FormatTestDto binary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; return this; } @@ -257,11 +257,11 @@ public class FormatTestDto { @Valid @ApiModelProperty(value = "") @JsonProperty("binary") - public org.springframework.core.io.Resource getBinary() { + public @Nullable org.springframework.core.io.Resource getBinary() { return binary; } - public void setBinary(org.springframework.core.io.Resource binary) { + public void setBinary(@Nullable org.springframework.core.io.Resource binary) { this.binary = binary; } @@ -285,7 +285,7 @@ public class FormatTestDto { this.date = date; } - public FormatTestDto dateTime(OffsetDateTime dateTime) { + public FormatTestDto dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public class FormatTestDto { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTestDto uuid(UUID uuid) { + public FormatTestDto uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -317,11 +317,11 @@ public class FormatTestDto { @Valid @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } @@ -345,7 +345,7 @@ public class FormatTestDto { this.password = password; } - public FormatTestDto bigDecimal(BigDecimal bigDecimal) { + public FormatTestDto bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public class FormatTestDto { @Valid @ApiModelProperty(value = "") @JsonProperty("BigDecimal") - public BigDecimal getBigDecimal() { + public @Nullable BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/HasOnlyReadOnlyDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/HasOnlyReadOnlyDto.java index 770a3760919..e50035d4544 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/HasOnlyReadOnlyDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/HasOnlyReadOnlyDto.java @@ -29,7 +29,7 @@ public class HasOnlyReadOnlyDto { private @Nullable String foo; - public HasOnlyReadOnlyDto bar(String bar) { + public HasOnlyReadOnlyDto bar(@Nullable String bar) { this.bar = bar; return this; } @@ -41,15 +41,15 @@ public class HasOnlyReadOnlyDto { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public HasOnlyReadOnlyDto foo(String foo) { + public HasOnlyReadOnlyDto foo(@Nullable String foo) { this.foo = foo; return this; } @@ -61,11 +61,11 @@ public class HasOnlyReadOnlyDto { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("foo") - public String getFoo() { + public @Nullable String getFoo() { return foo; } - public void setFoo(String foo) { + public void setFoo(@Nullable String foo) { this.foo = foo; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ListDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ListDto.java index 005fe326fef..7ab4e86385f 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ListDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ListDto.java @@ -27,7 +27,7 @@ public class ListDto { private @Nullable String _123List; - public ListDto _123List(String _123List) { + public ListDto _123List(@Nullable String _123List) { this._123List = _123List; return this; } @@ -39,11 +39,11 @@ public class ListDto { @ApiModelProperty(value = "") @JsonProperty("123-list") - public String get123List() { + public @Nullable String get123List() { return _123List; } - public void set123List(String _123List) { + public void set123List(@Nullable String _123List) { this._123List = _123List; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java index 5511f09dca9..73067aca0f1 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java @@ -39,7 +39,7 @@ public class MixedPropertiesAndAdditionalPropertiesClassDto { @Valid private Map map = new HashMap<>(); - public MixedPropertiesAndAdditionalPropertiesClassDto uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClassDto uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -51,15 +51,15 @@ public class MixedPropertiesAndAdditionalPropertiesClassDto { @Valid @ApiModelProperty(value = "") @JsonProperty("uuid") - public UUID getUuid() { + public @Nullable UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClassDto dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClassDto dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -71,11 +71,11 @@ public class MixedPropertiesAndAdditionalPropertiesClassDto { @Valid @ApiModelProperty(value = "") @JsonProperty("dateTime") - public OffsetDateTime getDateTime() { + public @Nullable OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Model200ResponseDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Model200ResponseDto.java index 12938f04fff..826bd50cfcf 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Model200ResponseDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Model200ResponseDto.java @@ -30,7 +30,7 @@ public class Model200ResponseDto { private @Nullable String propertyClass; - public Model200ResponseDto name(Integer name) { + public Model200ResponseDto name(@Nullable Integer name) { this.name = name; return this; } @@ -42,15 +42,15 @@ public class Model200ResponseDto { @ApiModelProperty(value = "") @JsonProperty("name") - public Integer getName() { + public @Nullable Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@Nullable Integer name) { this.name = name; } - public Model200ResponseDto propertyClass(String propertyClass) { + public Model200ResponseDto propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -62,11 +62,11 @@ public class Model200ResponseDto { @ApiModelProperty(value = "") @JsonProperty("class") - public String getPropertyClass() { + public @Nullable String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NameDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NameDto.java index 9781abad241..342fcad22a6 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NameDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NameDto.java @@ -65,7 +65,7 @@ public class NameDto { this.name = name; } - public NameDto snakeCase(Integer snakeCase) { + public NameDto snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -77,15 +77,15 @@ public class NameDto { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("snake_case") - public Integer getSnakeCase() { + public @Nullable Integer getSnakeCase() { return snakeCase; } - public void setSnakeCase(Integer snakeCase) { + public void setSnakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; } - public NameDto property(String property) { + public NameDto property(@Nullable String property) { this.property = property; return this; } @@ -97,15 +97,15 @@ public class NameDto { @ApiModelProperty(value = "") @JsonProperty("property") - public String getProperty() { + public @Nullable String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@Nullable String property) { this.property = property; } - public NameDto _123Number(Integer _123Number) { + public NameDto _123Number(@Nullable Integer _123Number) { this._123Number = _123Number; return this; } @@ -117,11 +117,11 @@ public class NameDto { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("123Number") - public Integer get123Number() { + public @Nullable Integer get123Number() { return _123Number; } - public void set123Number(Integer _123Number) { + public void set123Number(@Nullable Integer _123Number) { this._123Number = _123Number; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NumberOnlyDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NumberOnlyDto.java index d0a379a126a..a0264b1f7da 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NumberOnlyDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/NumberOnlyDto.java @@ -28,7 +28,7 @@ public class NumberOnlyDto { private @Nullable BigDecimal justNumber; - public NumberOnlyDto justNumber(BigDecimal justNumber) { + public NumberOnlyDto justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -40,11 +40,11 @@ public class NumberOnlyDto { @Valid @ApiModelProperty(value = "") @JsonProperty("JustNumber") - public BigDecimal getJustNumber() { + public @Nullable BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OrderDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OrderDto.java index 4d45917f4e8..1ba747c810c 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OrderDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OrderDto.java @@ -78,7 +78,7 @@ public class OrderDto { private Boolean complete = false; - public OrderDto id(Long id) { + public OrderDto id(@Nullable Long id) { this.id = id; return this; } @@ -90,15 +90,15 @@ public class OrderDto { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public OrderDto petId(Long petId) { + public OrderDto petId(@Nullable Long petId) { this.petId = petId; return this; } @@ -110,15 +110,15 @@ public class OrderDto { @ApiModelProperty(value = "") @JsonProperty("petId") - public Long getPetId() { + public @Nullable Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@Nullable Long petId) { this.petId = petId; } - public OrderDto quantity(Integer quantity) { + public OrderDto quantity(@Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -130,15 +130,15 @@ public class OrderDto { @ApiModelProperty(value = "") @JsonProperty("quantity") - public Integer getQuantity() { + public @Nullable Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@Nullable Integer quantity) { this.quantity = quantity; } - public OrderDto shipDate(OffsetDateTime shipDate) { + public OrderDto shipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -150,15 +150,15 @@ public class OrderDto { @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") - public OffsetDateTime getShipDate() { + public @Nullable OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public OrderDto status(StatusEnum status) { + public OrderDto status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -170,11 +170,11 @@ public class OrderDto { @ApiModelProperty(value = "Order Status") @JsonProperty("status") - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterCompositeDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterCompositeDto.java index 37c006c13f8..a093c7eebc9 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterCompositeDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/OuterCompositeDto.java @@ -32,7 +32,7 @@ public class OuterCompositeDto { private @Nullable Boolean myBoolean; - public OuterCompositeDto myNumber(BigDecimal myNumber) { + public OuterCompositeDto myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -44,15 +44,15 @@ public class OuterCompositeDto { @Valid @ApiModelProperty(value = "") @JsonProperty("my_number") - public BigDecimal getMyNumber() { + public @Nullable BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterCompositeDto myString(String myString) { + public OuterCompositeDto myString(@Nullable String myString) { this.myString = myString; return this; } @@ -64,15 +64,15 @@ public class OuterCompositeDto { @ApiModelProperty(value = "") @JsonProperty("my_string") - public String getMyString() { + public @Nullable String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@Nullable String myString) { this.myString = myString; } - public OuterCompositeDto myBoolean(Boolean myBoolean) { + public OuterCompositeDto myBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -84,11 +84,11 @@ public class OuterCompositeDto { @ApiModelProperty(value = "") @JsonProperty("my_boolean") - public Boolean getMyBoolean() { + public @Nullable Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ParentWithNullableDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ParentWithNullableDto.java index 4da3607f560..ba805bb2cc0 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ParentWithNullableDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ParentWithNullableDto.java @@ -77,7 +77,7 @@ public class ParentWithNullableDto { private JsonNullable nullableProperty = JsonNullable.undefined(); - public ParentWithNullableDto type(TypeEnum type) { + public ParentWithNullableDto type(@Nullable TypeEnum type) { this.type = type; return this; } @@ -89,11 +89,11 @@ public class ParentWithNullableDto { @ApiModelProperty(value = "") @JsonProperty("type") - public TypeEnum getType() { + public @Nullable TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@Nullable TypeEnum type) { this.type = type; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/PetDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/PetDto.java index 38f0451f4ee..ea1c5cd1690 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/PetDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/PetDto.java @@ -98,7 +98,7 @@ public class PetDto { this.photoUrls = photoUrls; } - public PetDto id(Long id) { + public PetDto id(@Nullable Long id) { this.id = id; return this; } @@ -110,15 +110,15 @@ public class PetDto { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public PetDto category(CategoryDto category) { + public PetDto category(@Nullable CategoryDto category) { this.category = category; return this; } @@ -130,11 +130,11 @@ public class PetDto { @Valid @ApiModelProperty(value = "") @JsonProperty("category") - public CategoryDto getCategory() { + public @Nullable CategoryDto getCategory() { return category; } - public void setCategory(CategoryDto category) { + public void setCategory(@Nullable CategoryDto category) { this.category = category; } @@ -215,7 +215,7 @@ public class PetDto { this.tags = tags; } - public PetDto status(StatusEnum status) { + public PetDto status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -229,7 +229,7 @@ public class PetDto { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -237,7 +237,7 @@ public class PetDto { * @deprecated */ @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@Nullable StatusEnum status) { this.status = status; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReadOnlyFirstDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReadOnlyFirstDto.java index 9cd94c35105..509a8e28f8a 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReadOnlyFirstDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReadOnlyFirstDto.java @@ -29,7 +29,7 @@ public class ReadOnlyFirstDto { private @Nullable String baz; - public ReadOnlyFirstDto bar(String bar) { + public ReadOnlyFirstDto bar(@Nullable String bar) { this.bar = bar; return this; } @@ -41,15 +41,15 @@ public class ReadOnlyFirstDto { @ApiModelProperty(readOnly = true, value = "") @JsonProperty("bar") - public String getBar() { + public @Nullable String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@Nullable String bar) { this.bar = bar; } - public ReadOnlyFirstDto baz(String baz) { + public ReadOnlyFirstDto baz(@Nullable String baz) { this.baz = baz; return this; } @@ -61,11 +61,11 @@ public class ReadOnlyFirstDto { @ApiModelProperty(value = "") @JsonProperty("baz") - public String getBaz() { + public @Nullable String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@Nullable String baz) { this.baz = baz; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNamesDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNamesDto.java index 73202729b88..0125a7deae0 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNamesDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNamesDto.java @@ -33,7 +33,7 @@ public class ResponseObjectWithDifferentFieldNamesDto { private @Nullable String propertyNameWithSpaces; - public ResponseObjectWithDifferentFieldNamesDto normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNamesDto normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -45,15 +45,15 @@ public class ResponseObjectWithDifferentFieldNamesDto { @ApiModelProperty(value = "") @JsonProperty("normalPropertyName") - public String getNormalPropertyName() { + public @Nullable String getNormalPropertyName() { return normalPropertyName; } - public void setNormalPropertyName(String normalPropertyName) { + public void setNormalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; } - public ResponseObjectWithDifferentFieldNamesDto UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public ResponseObjectWithDifferentFieldNamesDto UPPER_CASE_PROPERTY_SNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; return this; } @@ -65,15 +65,15 @@ public class ResponseObjectWithDifferentFieldNamesDto { @ApiModelProperty(value = "") @JsonProperty("UPPER_CASE_PROPERTY_SNAKE") - public String getUPPERCASEPROPERTYSNAKE() { + public @Nullable String getUPPERCASEPROPERTYSNAKE() { return UPPER_CASE_PROPERTY_SNAKE; } - public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) { + public void setUPPERCASEPROPERTYSNAKE(@Nullable String UPPER_CASE_PROPERTY_SNAKE) { this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE; } - public ResponseObjectWithDifferentFieldNamesDto lowerCasePropertyDashes(String lowerCasePropertyDashes) { + public ResponseObjectWithDifferentFieldNamesDto lowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; return this; } @@ -85,15 +85,15 @@ public class ResponseObjectWithDifferentFieldNamesDto { @ApiModelProperty(value = "") @JsonProperty("lower-case-property-dashes") - public String getLowerCasePropertyDashes() { + public @Nullable String getLowerCasePropertyDashes() { return lowerCasePropertyDashes; } - public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) { + public void setLowerCasePropertyDashes(@Nullable String lowerCasePropertyDashes) { this.lowerCasePropertyDashes = lowerCasePropertyDashes; } - public ResponseObjectWithDifferentFieldNamesDto propertyNameWithSpaces(String propertyNameWithSpaces) { + public ResponseObjectWithDifferentFieldNamesDto propertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; return this; } @@ -105,11 +105,11 @@ public class ResponseObjectWithDifferentFieldNamesDto { @ApiModelProperty(value = "") @JsonProperty("property name with spaces") - public String getPropertyNameWithSpaces() { + public @Nullable String getPropertyNameWithSpaces() { return propertyNameWithSpaces; } - public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { + public void setPropertyNameWithSpaces(@Nullable String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReturnDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReturnDto.java index 2e20ddb471b..f4003fad328 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReturnDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ReturnDto.java @@ -28,7 +28,7 @@ public class ReturnDto { private @Nullable Integer _return; - public ReturnDto _return(Integer _return) { + public ReturnDto _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -40,11 +40,11 @@ public class ReturnDto { @ApiModelProperty(value = "") @JsonProperty("return") - public Integer getReturn() { + public @Nullable Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@Nullable Integer _return) { this._return = _return; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/SpecialModelNameDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/SpecialModelNameDto.java index a6a9a85a9c7..89e4b64772a 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/SpecialModelNameDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/SpecialModelNameDto.java @@ -27,7 +27,7 @@ public class SpecialModelNameDto { private @Nullable Long $SpecialPropertyName; - public SpecialModelNameDto $SpecialPropertyName(Long $SpecialPropertyName) { + public SpecialModelNameDto $SpecialPropertyName(@Nullable Long $SpecialPropertyName) { this.$SpecialPropertyName = $SpecialPropertyName; return this; } @@ -39,11 +39,11 @@ public class SpecialModelNameDto { @ApiModelProperty(value = "") @JsonProperty("$special[property.name]") - public Long get$SpecialPropertyName() { + public @Nullable Long get$SpecialPropertyName() { return $SpecialPropertyName; } - public void set$SpecialPropertyName(Long $SpecialPropertyName) { + public void set$SpecialPropertyName(@Nullable Long $SpecialPropertyName) { this.$SpecialPropertyName = $SpecialPropertyName; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TagDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TagDto.java index 3256dc95fd1..0a5b474ba21 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TagDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TagDto.java @@ -29,7 +29,7 @@ public class TagDto { private @Nullable String name; - public TagDto id(Long id) { + public TagDto id(@Nullable Long id) { this.id = id; return this; } @@ -41,15 +41,15 @@ public class TagDto { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public TagDto name(String name) { + public TagDto name(@Nullable String name) { this.name = name; return this; } @@ -61,11 +61,11 @@ public class TagDto { @ApiModelProperty(value = "") @JsonProperty("name") - public String getName() { + public @Nullable String getName() { return name; } - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/UserDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/UserDto.java index 53c318e6120..e5936d5031b 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/UserDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/UserDto.java @@ -41,7 +41,7 @@ public class UserDto { private @Nullable Integer userStatus; - public UserDto id(Long id) { + public UserDto id(@Nullable Long id) { this.id = id; return this; } @@ -53,15 +53,15 @@ public class UserDto { @ApiModelProperty(value = "") @JsonProperty("id") - public Long getId() { + public @Nullable Long getId() { return id; } - public void setId(Long id) { + public void setId(@Nullable Long id) { this.id = id; } - public UserDto username(String username) { + public UserDto username(@Nullable String username) { this.username = username; return this; } @@ -73,15 +73,15 @@ public class UserDto { @ApiModelProperty(value = "") @JsonProperty("username") - public String getUsername() { + public @Nullable String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@Nullable String username) { this.username = username; } - public UserDto firstName(String firstName) { + public UserDto firstName(@Nullable String firstName) { this.firstName = firstName; return this; } @@ -93,15 +93,15 @@ public class UserDto { @ApiModelProperty(value = "") @JsonProperty("firstName") - public String getFirstName() { + public @Nullable String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@Nullable String firstName) { this.firstName = firstName; } - public UserDto lastName(String lastName) { + public UserDto lastName(@Nullable String lastName) { this.lastName = lastName; return this; } @@ -113,15 +113,15 @@ public class UserDto { @ApiModelProperty(value = "") @JsonProperty("lastName") - public String getLastName() { + public @Nullable String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@Nullable String lastName) { this.lastName = lastName; } - public UserDto email(String email) { + public UserDto email(@Nullable String email) { this.email = email; return this; } @@ -133,15 +133,15 @@ public class UserDto { @ApiModelProperty(value = "") @JsonProperty("email") - public String getEmail() { + public @Nullable String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@Nullable String email) { this.email = email; } - public UserDto password(String password) { + public UserDto password(@Nullable String password) { this.password = password; return this; } @@ -153,15 +153,15 @@ public class UserDto { @ApiModelProperty(value = "") @JsonProperty("password") - public String getPassword() { + public @Nullable String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@Nullable String password) { this.password = password; } - public UserDto phone(String phone) { + public UserDto phone(@Nullable String phone) { this.phone = phone; return this; } @@ -173,15 +173,15 @@ public class UserDto { @ApiModelProperty(value = "") @JsonProperty("phone") - public String getPhone() { + public @Nullable String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@Nullable String phone) { this.phone = phone; } - public UserDto userStatus(Integer userStatus) { + public UserDto userStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -193,11 +193,11 @@ public class UserDto { @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") - public Integer getUserStatus() { + public @Nullable Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItemDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItemDto.java index 495da55cb19..61948f5f43e 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItemDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItemDto.java @@ -96,7 +96,7 @@ public class XmlItemDto { @Valid private List prefixNsWrappedArray = new ArrayList<>(); - public XmlItemDto attributeString(String attributeString) { + public XmlItemDto attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -108,15 +108,15 @@ public class XmlItemDto { @ApiModelProperty(example = "string", value = "") @JsonProperty("attribute_string") - public String getAttributeString() { + public @Nullable String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItemDto attributeNumber(BigDecimal attributeNumber) { + public XmlItemDto attributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -128,15 +128,15 @@ public class XmlItemDto { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("attribute_number") - public BigDecimal getAttributeNumber() { + public @Nullable BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItemDto attributeInteger(Integer attributeInteger) { + public XmlItemDto attributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -148,15 +148,15 @@ public class XmlItemDto { @ApiModelProperty(example = "-2", value = "") @JsonProperty("attribute_integer") - public Integer getAttributeInteger() { + public @Nullable Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItemDto attributeBoolean(Boolean attributeBoolean) { + public XmlItemDto attributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -168,11 +168,11 @@ public class XmlItemDto { @ApiModelProperty(example = "true", value = "") @JsonProperty("attribute_boolean") - public Boolean getAttributeBoolean() { + public @Nullable Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -204,7 +204,7 @@ public class XmlItemDto { this.wrappedArray = wrappedArray; } - public XmlItemDto nameString(String nameString) { + public XmlItemDto nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -216,15 +216,15 @@ public class XmlItemDto { @ApiModelProperty(example = "string", value = "") @JsonProperty("name_string") - public String getNameString() { + public @Nullable String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@Nullable String nameString) { this.nameString = nameString; } - public XmlItemDto nameNumber(BigDecimal nameNumber) { + public XmlItemDto nameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -236,15 +236,15 @@ public class XmlItemDto { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("name_number") - public BigDecimal getNameNumber() { + public @Nullable BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItemDto nameInteger(Integer nameInteger) { + public XmlItemDto nameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -256,15 +256,15 @@ public class XmlItemDto { @ApiModelProperty(example = "-2", value = "") @JsonProperty("name_integer") - public Integer getNameInteger() { + public @Nullable Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItemDto nameBoolean(Boolean nameBoolean) { + public XmlItemDto nameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -276,11 +276,11 @@ public class XmlItemDto { @ApiModelProperty(example = "true", value = "") @JsonProperty("name_boolean") - public Boolean getNameBoolean() { + public @Nullable Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -340,7 +340,7 @@ public class XmlItemDto { this.nameWrappedArray = nameWrappedArray; } - public XmlItemDto prefixString(String prefixString) { + public XmlItemDto prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -352,15 +352,15 @@ public class XmlItemDto { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_string") - public String getPrefixString() { + public @Nullable String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItemDto prefixNumber(BigDecimal prefixNumber) { + public XmlItemDto prefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -372,15 +372,15 @@ public class XmlItemDto { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_number") - public BigDecimal getPrefixNumber() { + public @Nullable BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItemDto prefixInteger(Integer prefixInteger) { + public XmlItemDto prefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -392,15 +392,15 @@ public class XmlItemDto { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_integer") - public Integer getPrefixInteger() { + public @Nullable Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItemDto prefixBoolean(Boolean prefixBoolean) { + public XmlItemDto prefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -412,11 +412,11 @@ public class XmlItemDto { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_boolean") - public Boolean getPrefixBoolean() { + public @Nullable Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -476,7 +476,7 @@ public class XmlItemDto { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItemDto namespaceString(String namespaceString) { + public XmlItemDto namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -488,15 +488,15 @@ public class XmlItemDto { @ApiModelProperty(example = "string", value = "") @JsonProperty("namespace_string") - public String getNamespaceString() { + public @Nullable String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItemDto namespaceNumber(BigDecimal namespaceNumber) { + public XmlItemDto namespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -508,15 +508,15 @@ public class XmlItemDto { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("namespace_number") - public BigDecimal getNamespaceNumber() { + public @Nullable BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItemDto namespaceInteger(Integer namespaceInteger) { + public XmlItemDto namespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -528,15 +528,15 @@ public class XmlItemDto { @ApiModelProperty(example = "-2", value = "") @JsonProperty("namespace_integer") - public Integer getNamespaceInteger() { + public @Nullable Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItemDto namespaceBoolean(Boolean namespaceBoolean) { + public XmlItemDto namespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -548,11 +548,11 @@ public class XmlItemDto { @ApiModelProperty(example = "true", value = "") @JsonProperty("namespace_boolean") - public Boolean getNamespaceBoolean() { + public @Nullable Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -612,7 +612,7 @@ public class XmlItemDto { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItemDto prefixNsString(String prefixNsString) { + public XmlItemDto prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -624,15 +624,15 @@ public class XmlItemDto { @ApiModelProperty(example = "string", value = "") @JsonProperty("prefix_ns_string") - public String getPrefixNsString() { + public @Nullable String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItemDto prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItemDto prefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -644,15 +644,15 @@ public class XmlItemDto { @Valid @ApiModelProperty(example = "1.234", value = "") @JsonProperty("prefix_ns_number") - public BigDecimal getPrefixNsNumber() { + public @Nullable BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItemDto prefixNsInteger(Integer prefixNsInteger) { + public XmlItemDto prefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -664,15 +664,15 @@ public class XmlItemDto { @ApiModelProperty(example = "-2", value = "") @JsonProperty("prefix_ns_integer") - public Integer getPrefixNsInteger() { + public @Nullable Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItemDto prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItemDto prefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -684,11 +684,11 @@ public class XmlItemDto { @ApiModelProperty(example = "true", value = "") @JsonProperty("prefix_ns_boolean") - public Boolean getPrefixNsBoolean() { + public @Nullable Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; }