From ee41035094c6031e507d352bbb99726b765c1fd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C5=A0imon?= Date: Sun, 4 May 2025 19:34:30 +0200 Subject: [PATCH] [JavaSpring][21200] improve Kotlin interopability with optional values nullable annotations are now added to getters, setters, parameters, for optional attributes without default value --- .../main/resources/JavaSpring/api.mustache | 1 + .../JavaSpring/apiController.mustache | 1 + .../resources/JavaSpring/apiDelegate.mustache | 1 + .../resources/JavaSpring/bodyParams.mustache | 2 +- .../JavaSpring/cookieParams.mustache | 2 +- .../JavaSpring/headerParams.mustache | 2 +- .../spring-http-interface/api.mustache | 1 + .../main/resources/JavaSpring/pojo.mustache | 6 +- .../resources/JavaSpring/queryParams.mustache | 2 +- .../java/org/openapitools/api/SomeApi.java | 1 + .../java/org/openapitools/api/DefaultApi.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 30 ++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 30 ++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../org/openapitools/api/PetController.java | 3 +- .../org/openapitools/api/StoreController.java | 1 + .../org/openapitools/api/UserController.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 30 ++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 30 ++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../java/org/openapitools/api/FakeApi.java | 23 ++-- .../api/FakeClassnameTags123Api.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../model/AdditionalPropertiesAnyTypeDto.java | 6 +- .../model/AdditionalPropertiesArrayDto.java | 6 +- .../model/AdditionalPropertiesBooleanDto.java | 6 +- .../model/AdditionalPropertiesClassDto.java | 12 +- .../model/AdditionalPropertiesIntegerDto.java | 6 +- .../model/AdditionalPropertiesNumberDto.java | 6 +- .../model/AdditionalPropertiesObjectDto.java | 6 +- .../model/AdditionalPropertiesStringDto.java | 6 +- .../openapitools/model/ApiResponseDto.java | 18 +-- .../org/openapitools/model/BigCatDto.java | 6 +- .../openapitools/model/CapitalizationDto.java | 36 +++--- .../java/org/openapitools/model/CatDto.java | 6 +- .../org/openapitools/model/CategoryDto.java | 6 +- .../model/ChildWithNullableDto.java | 6 +- .../org/openapitools/model/ClassModelDto.java | 6 +- .../org/openapitools/model/ClientDto.java | 6 +- .../java/org/openapitools/model/DogDto.java | 6 +- .../org/openapitools/model/EnumArraysDto.java | 6 +- .../org/openapitools/model/EnumTestDto.java | 24 ++-- .../java/org/openapitools/model/FileDto.java | 6 +- .../model/FileSchemaTestClassDto.java | 6 +- .../org/openapitools/model/FormatTestDto.java | 60 ++++----- .../model/HasOnlyReadOnlyDto.java | 12 +- .../java/org/openapitools/model/ListDto.java | 6 +- ...ertiesAndAdditionalPropertiesClassDto.java | 12 +- .../model/Model200ResponseDto.java | 12 +- .../java/org/openapitools/model/NameDto.java | 18 +-- .../org/openapitools/model/NumberOnlyDto.java | 6 +- .../java/org/openapitools/model/OrderDto.java | 30 ++--- .../openapitools/model/OuterCompositeDto.java | 18 +-- .../model/ParentWithNullableDto.java | 6 +- .../java/org/openapitools/model/PetDto.java | 18 +-- .../openapitools/model/ReadOnlyFirstDto.java | 12 +- ...ponseObjectWithDifferentFieldNamesDto.java | 24 ++-- .../org/openapitools/model/ReturnDto.java | 6 +- .../model/SpecialModelNameDto.java | 6 +- .../java/org/openapitools/model/TagDto.java | 12 +- .../java/org/openapitools/model/UserDto.java | 48 +++---- .../org/openapitools/model/XmlItemDto.java | 120 +++++++++--------- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../java/org/openapitools/api/FakeApi.java | 15 ++- .../api/FakeClassnameTags123Api.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 12 +- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../java/org/openapitools/model/BigCat.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../openapitools/model/ChildWithNullable.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../model/ParentWithNullable.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- ...ResponseObjectWithDifferentFieldNames.java | 24 ++-- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../java/org/openapitools/api/FakeApi.java | 15 ++- .../api/FakeClassnameTags123Api.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 12 +- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../java/org/openapitools/model/BigCat.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../openapitools/model/ChildWithNullable.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../model/ParentWithNullable.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- ...ResponseObjectWithDifferentFieldNames.java | 24 ++-- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../java/org/openapitools/api/FakeApi.java | 23 ++-- .../api/FakeClassnameTags123Api.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../model/AdditionalPropertiesAnyTypeDto.java | 6 +- .../model/AdditionalPropertiesArrayDto.java | 6 +- .../model/AdditionalPropertiesBooleanDto.java | 6 +- .../model/AdditionalPropertiesClassDto.java | 12 +- .../model/AdditionalPropertiesIntegerDto.java | 6 +- .../model/AdditionalPropertiesNumberDto.java | 6 +- .../model/AdditionalPropertiesObjectDto.java | 6 +- .../model/AdditionalPropertiesStringDto.java | 6 +- .../openapitools/model/ApiResponseDto.java | 18 +-- .../org/openapitools/model/BigCatDto.java | 6 +- .../openapitools/model/CapitalizationDto.java | 36 +++--- .../java/org/openapitools/model/CatDto.java | 6 +- .../org/openapitools/model/CategoryDto.java | 6 +- .../model/ChildWithNullableDto.java | 6 +- .../org/openapitools/model/ClassModelDto.java | 6 +- .../org/openapitools/model/ClientDto.java | 6 +- .../java/org/openapitools/model/DogDto.java | 6 +- .../org/openapitools/model/EnumArraysDto.java | 6 +- .../org/openapitools/model/EnumTestDto.java | 24 ++-- .../java/org/openapitools/model/FileDto.java | 6 +- .../model/FileSchemaTestClassDto.java | 6 +- .../org/openapitools/model/FormatTestDto.java | 60 ++++----- .../model/HasOnlyReadOnlyDto.java | 12 +- .../java/org/openapitools/model/ListDto.java | 6 +- ...ertiesAndAdditionalPropertiesClassDto.java | 12 +- .../model/Model200ResponseDto.java | 12 +- .../java/org/openapitools/model/NameDto.java | 18 +-- .../org/openapitools/model/NumberOnlyDto.java | 6 +- .../java/org/openapitools/model/OrderDto.java | 30 ++--- .../openapitools/model/OuterCompositeDto.java | 18 +-- .../model/ParentWithNullableDto.java | 6 +- .../java/org/openapitools/model/PetDto.java | 18 +-- .../openapitools/model/ReadOnlyFirstDto.java | 12 +- ...ponseObjectWithDifferentFieldNamesDto.java | 24 ++-- .../org/openapitools/model/ReturnDto.java | 6 +- .../model/SpecialModelNameDto.java | 6 +- .../java/org/openapitools/model/TagDto.java | 12 +- .../java/org/openapitools/model/UserDto.java | 48 +++---- .../org/openapitools/model/XmlItemDto.java | 120 +++++++++--------- .../java/org/openapitools/api/PetApi.java | 1 + .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 30 ++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 30 ++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/api/DefaultApi.java | 1 + .../java/org/openapitools/api/PetApi.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../java/org/openapitools/api/FakeApi.java | 23 ++-- .../api/FakeClassnameTags123Api.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 12 +- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../java/org/openapitools/model/BigCat.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../openapitools/model/ChildWithNullable.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../model/ParentWithNullable.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- ...ResponseObjectWithDifferentFieldNames.java | 24 ++-- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../java/org/openapitools/api/PetApi.java | 5 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 30 ++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 30 ++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 30 ++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 30 ++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/api/BarApi.java | 1 + .../java/org/openapitools/api/FooApi.java | 3 +- .../org/openapitools/model/Addressable.java | 12 +- .../main/java/org/openapitools/model/Bar.java | 18 +-- .../org/openapitools/model/BarCreate.java | 18 +-- .../java/org/openapitools/model/Entity.java | 24 ++-- .../org/openapitools/model/EntityRef.java | 36 +++--- .../org/openapitools/model/Extensible.java | 12 +- .../main/java/org/openapitools/model/Foo.java | 12 +- .../java/org/openapitools/model/FooRef.java | 6 +- .../java/org/openapitools/model/Pasta.java | 6 +- .../java/org/openapitools/model/Pizza.java | 6 +- .../org/openapitools/model/PizzaSpeziale.java | 6 +- .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 30 ++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 30 ++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../api/AnotherFakeApiDelegate.java | 1 + .../java/org/openapitools/api/FakeApi.java | 23 ++-- .../org/openapitools/api/FakeApiDelegate.java | 1 + .../api/FakeClassnameTestApi.java | 1 + .../api/FakeClassnameTestApiDelegate.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../org/openapitools/api/PetApiDelegate.java | 1 + .../java/org/openapitools/api/StoreApi.java | 1 + .../openapitools/api/StoreApiDelegate.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../org/openapitools/api/UserApiDelegate.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 12 +- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../java/org/openapitools/model/BigCat.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../openapitools/model/ChildWithNullable.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../model/ParentWithNullable.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- ...ResponseObjectWithDifferentFieldNames.java | 24 ++-- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../java/org/openapitools/api/FakeApi.java | 19 +-- .../api/FakeClassnameTestApi.java | 1 + .../java/org/openapitools/api/PetApi.java | 1 + .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 12 +- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../java/org/openapitools/model/BigCat.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../openapitools/model/ChildWithNullable.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../model/ParentWithNullable.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- ...ResponseObjectWithDifferentFieldNames.java | 24 ++-- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 30 ++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 30 ++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../java/org/openapitools/api/FakeApi.java | 23 ++-- .../api/FakeClassnameTestApi.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 12 +- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../java/org/openapitools/model/BigCat.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../openapitools/model/ChildWithNullable.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../model/ParentWithNullable.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- ...ResponseObjectWithDifferentFieldNames.java | 24 ++-- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../org/openapitools/api/NullableApi.java | 3 +- .../model/ObjectWithUniqueItems.java | 12 +- .../java/org/openapitools/api/DogsApi.java | 3 +- .../org/openapitools/api/DogsApiDelegate.java | 1 + .../main/java/org/openapitools/model/Dog.java | 12 +- .../java/org/openapitools/model/Error.java | 12 +- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../java/org/openapitools/api/FakeApi.java | 23 ++-- .../api/FakeClassnameTestApi.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 18 +-- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../java/org/openapitools/model/BigCat.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../openapitools/model/ChildWithNullable.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../model/ContainerDefaultValue.java | 12 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../model/NullableMapProperty.java | 6 +- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../model/ParentWithNullable.java | 12 +- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- ...ResponseObjectWithDifferentFieldNames.java | 24 ++-- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../java/org/openapitools/api/FakeApi.java | 23 ++-- .../api/FakeClassnameTestApi.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 12 +- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../java/org/openapitools/model/BigCat.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../openapitools/model/ChildWithNullable.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../model/ParentWithNullable.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- ...ResponseObjectWithDifferentFieldNames.java | 24 ++-- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../java/org/openapitools/api/FakeApi.java | 23 ++-- .../api/FakeClassnameTestApi.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 12 +- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../java/org/openapitools/model/BigCat.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../openapitools/model/ChildWithNullable.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../model/ParentWithNullable.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- ...ResponseObjectWithDifferentFieldNames.java | 24 ++-- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../api/AnotherFakeApiDelegate.java | 1 + .../java/org/openapitools/api/FakeApi.java | 23 ++-- .../org/openapitools/api/FakeApiDelegate.java | 1 + .../api/FakeClassnameTestApi.java | 1 + .../api/FakeClassnameTestApiDelegate.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../org/openapitools/api/PetApiDelegate.java | 1 + .../java/org/openapitools/api/StoreApi.java | 1 + .../openapitools/api/StoreApiDelegate.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../org/openapitools/api/UserApiDelegate.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 12 +- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../java/org/openapitools/model/BigCat.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../openapitools/model/ChildWithNullable.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../model/ParentWithNullable.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- ...ResponseObjectWithDifferentFieldNames.java | 24 ++-- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../java/org/openapitools/api/PetApi.java | 3 +- .../org/openapitools/api/PetApiDelegate.java | 1 + .../java/org/openapitools/api/StoreApi.java | 1 + .../openapitools/api/StoreApiDelegate.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../org/openapitools/api/UserApiDelegate.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 30 ++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../api/AnotherFakeApiDelegate.java | 1 + .../java/org/openapitools/api/FakeApi.java | 23 ++-- .../org/openapitools/api/FakeApiDelegate.java | 1 + .../api/FakeClassnameTestApi.java | 1 + .../api/FakeClassnameTestApiDelegate.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../org/openapitools/api/PetApiDelegate.java | 1 + .../java/org/openapitools/api/StoreApi.java | 1 + .../openapitools/api/StoreApiDelegate.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../org/openapitools/api/UserApiDelegate.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 12 +- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../java/org/openapitools/model/BigCat.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../openapitools/model/ChildWithNullable.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../model/ParentWithNullable.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- ...ResponseObjectWithDifferentFieldNames.java | 24 ++-- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../java/org/openapitools/api/DummyApi.java | 1 + .../openapitools/api/DummyApiDelegate.java | 1 + .../java/org/openapitools/api/PetApi.java | 1 + .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 30 ++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../java/org/openapitools/api/FakeApi.java | 19 +-- .../api/FakeClassnameTestApi.java | 1 + .../java/org/openapitools/api/PetApi.java | 1 + .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 12 +- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../java/org/openapitools/model/BigCat.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../openapitools/model/ChildWithNullable.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../model/ParentWithNullable.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- ...ResponseObjectWithDifferentFieldNames.java | 24 ++-- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/model/Category.java | 4 +- .../openapitools/model/ModelApiResponse.java | 6 +- .../java/org/openapitools/model/Order.java | 10 +- .../main/java/org/openapitools/model/Pet.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 4 +- .../java/org/openapitools/model/User.java | 16 +-- .../java/org/openapitools/api/PetApi.java | 3 +- .../org/openapitools/api/PetApiDelegate.java | 1 + .../java/org/openapitools/api/StoreApi.java | 1 + .../openapitools/api/StoreApiDelegate.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../org/openapitools/api/UserApiDelegate.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 30 ++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../api/AnotherFakeApiDelegate.java | 1 + .../java/org/openapitools/api/FakeApi.java | 15 ++- .../org/openapitools/api/FakeApiDelegate.java | 1 + .../api/FakeClassnameTestApi.java | 1 + .../api/FakeClassnameTestApiDelegate.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../org/openapitools/api/PetApiDelegate.java | 1 + .../java/org/openapitools/api/StoreApi.java | 1 + .../openapitools/api/StoreApiDelegate.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../org/openapitools/api/UserApiDelegate.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 12 +- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../java/org/openapitools/model/BigCat.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../openapitools/model/ChildWithNullable.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../model/ParentWithNullable.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- ...ResponseObjectWithDifferentFieldNames.java | 24 ++-- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../api/AnotherFakeApiDelegate.java | 1 + .../java/org/openapitools/api/FakeApi.java | 15 ++- .../org/openapitools/api/FakeApiDelegate.java | 1 + .../api/FakeClassnameTestApi.java | 1 + .../api/FakeClassnameTestApiDelegate.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../org/openapitools/api/PetApiDelegate.java | 1 + .../java/org/openapitools/api/StoreApi.java | 1 + .../openapitools/api/StoreApiDelegate.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../org/openapitools/api/UserApiDelegate.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 12 +- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../java/org/openapitools/model/BigCat.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../openapitools/model/ChildWithNullable.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../model/ParentWithNullable.java | 6 +- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- ...ResponseObjectWithDifferentFieldNames.java | 24 ++-- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../api/AnotherFakeApiDelegate.java | 1 + .../java/org/openapitools/api/FakeApi.java | 23 ++-- .../org/openapitools/api/FakeApiDelegate.java | 1 + .../api/FakeClassnameTestApi.java | 1 + .../api/FakeClassnameTestApiDelegate.java | 1 + .../java/org/openapitools/api/PetApi.java | 5 +- .../org/openapitools/api/PetApiDelegate.java | 1 + .../java/org/openapitools/api/StoreApi.java | 1 + .../openapitools/api/StoreApiDelegate.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../org/openapitools/api/UserApiDelegate.java | 1 + .../org/openapitools/api/VersioningApi.java | 1 + .../api/VersioningApiDelegate.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 18 +-- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../api/AnotherFakeApiDelegate.java | 1 + .../java/org/openapitools/api/FakeApi.java | 23 ++-- .../org/openapitools/api/FakeApiDelegate.java | 1 + .../api/FakeClassnameTestApi.java | 1 + .../api/FakeClassnameTestApiDelegate.java | 1 + .../java/org/openapitools/api/PetApi.java | 5 +- .../org/openapitools/api/PetApiDelegate.java | 1 + .../java/org/openapitools/api/StoreApi.java | 1 + .../openapitools/api/StoreApiDelegate.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../org/openapitools/api/UserApiDelegate.java | 1 + .../org/openapitools/api/VersioningApi.java | 1 + .../api/VersioningApiDelegate.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 18 +-- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../java/org/openapitools/api/FakeApi.java | 23 ++-- .../api/FakeClassnameTestApi.java | 1 + .../java/org/openapitools/api/PetApi.java | 5 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../org/openapitools/api/VersioningApi.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 18 +-- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../java/org/openapitools/api/FakeApi.java | 23 ++-- .../api/FakeClassnameTestApi.java | 1 + .../java/org/openapitools/api/PetApi.java | 5 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../org/openapitools/api/VersioningApi.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 18 +-- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../openapitools/model/Capitalization.java | 36 +++--- .../main/java/org/openapitools/model/Cat.java | 6 +- .../java/org/openapitools/model/Category.java | 6 +- .../org/openapitools/model/ClassModel.java | 6 +- .../java/org/openapitools/model/Client.java | 6 +- .../main/java/org/openapitools/model/Dog.java | 6 +- .../org/openapitools/model/EnumArrays.java | 6 +- .../java/org/openapitools/model/EnumTest.java | 24 ++-- .../java/org/openapitools/model/File.java | 6 +- .../model/FileSchemaTestClass.java | 6 +- .../org/openapitools/model/FormatTest.java | 60 ++++----- .../openapitools/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../openapitools/model/Model200Response.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../org/openapitools/model/ModelList.java | 6 +- .../org/openapitools/model/ModelReturn.java | 6 +- .../java/org/openapitools/model/Name.java | 18 +-- .../org/openapitools/model/NumberOnly.java | 6 +- .../java/org/openapitools/model/Order.java | 30 ++--- .../openapitools/model/OuterComposite.java | 18 +-- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../org/openapitools/model/ReadOnlyFirst.java | 12 +- .../openapitools/model/SpecialModelName.java | 6 +- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../java/org/openapitools/model/XmlItem.java | 120 +++++++++--------- .../java/org/openapitools/api/UserApi.java | 1 + .../java/org/openapitools/model/Category.java | 12 +- .../openapitools/model/ModelApiResponse.java | 18 +-- .../java/org/openapitools/model/Order.java | 36 +++--- .../main/java/org/openapitools/model/Pet.java | 18 +-- .../main/java/org/openapitools/model/Tag.java | 12 +- .../java/org/openapitools/model/User.java | 48 +++---- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../java/org/openapitools/api/FakeApi.java | 1 + .../api/FakeClassnameTestApi.java | 1 + .../java/org/openapitools/api/PetApi.java | 1 + .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../virtualan/api/AnotherFakeApi.java | 1 + .../openapitools/virtualan/api/FakeApi.java | 23 ++-- .../virtualan/api/FakeClassnameTestApi.java | 1 + .../openapitools/virtualan/api/PetApi.java | 3 +- .../openapitools/virtualan/api/StoreApi.java | 1 + .../openapitools/virtualan/api/UserApi.java | 1 + .../model/AdditionalPropertiesAnyType.java | 6 +- .../model/AdditionalPropertiesArray.java | 6 +- .../model/AdditionalPropertiesBoolean.java | 6 +- .../model/AdditionalPropertiesClass.java | 12 +- .../model/AdditionalPropertiesInteger.java | 6 +- .../model/AdditionalPropertiesNumber.java | 6 +- .../model/AdditionalPropertiesObject.java | 6 +- .../model/AdditionalPropertiesString.java | 6 +- .../openapitools/virtualan/model/BigCat.java | 6 +- .../virtualan/model/Capitalization.java | 36 +++--- .../org/openapitools/virtualan/model/Cat.java | 6 +- .../virtualan/model/Category.java | 6 +- .../virtualan/model/ChildWithNullable.java | 6 +- .../virtualan/model/ClassModel.java | 6 +- .../openapitools/virtualan/model/Client.java | 6 +- .../org/openapitools/virtualan/model/Dog.java | 6 +- .../virtualan/model/EnumArrays.java | 6 +- .../virtualan/model/EnumTest.java | 24 ++-- .../openapitools/virtualan/model/File.java | 6 +- .../virtualan/model/FileSchemaTestClass.java | 6 +- .../virtualan/model/FormatTest.java | 60 ++++----- .../virtualan/model/HasOnlyReadOnly.java | 12 +- ...ropertiesAndAdditionalPropertiesClass.java | 12 +- .../virtualan/model/Model200Response.java | 12 +- .../virtualan/model/ModelApiResponse.java | 18 +-- .../virtualan/model/ModelList.java | 6 +- .../virtualan/model/ModelReturn.java | 6 +- .../openapitools/virtualan/model/Name.java | 18 +-- .../virtualan/model/NumberOnly.java | 6 +- .../openapitools/virtualan/model/Order.java | 30 ++--- .../virtualan/model/OuterComposite.java | 18 +-- .../virtualan/model/ParentWithNullable.java | 6 +- .../org/openapitools/virtualan/model/Pet.java | 18 +-- .../virtualan/model/ReadOnlyFirst.java | 12 +- ...ResponseObjectWithDifferentFieldNames.java | 24 ++-- .../virtualan/model/SpecialModelName.java | 6 +- .../org/openapitools/virtualan/model/Tag.java | 12 +- .../openapitools/virtualan/model/User.java | 48 +++---- .../openapitools/virtualan/model/XmlItem.java | 120 +++++++++--------- .../org/openapitools/api/AnotherFakeApi.java | 1 + .../java/org/openapitools/api/FakeApi.java | 23 ++-- .../api/FakeClassnameTestApi.java | 1 + .../java/org/openapitools/api/PetApi.java | 3 +- .../java/org/openapitools/api/StoreApi.java | 1 + .../java/org/openapitools/api/UserApi.java | 1 + .../model/AdditionalPropertiesAnyTypeDto.java | 6 +- .../model/AdditionalPropertiesArrayDto.java | 6 +- .../model/AdditionalPropertiesBooleanDto.java | 6 +- .../model/AdditionalPropertiesClassDto.java | 12 +- .../model/AdditionalPropertiesIntegerDto.java | 6 +- .../model/AdditionalPropertiesNumberDto.java | 6 +- .../model/AdditionalPropertiesObjectDto.java | 6 +- .../model/AdditionalPropertiesStringDto.java | 6 +- .../openapitools/model/ApiResponseDto.java | 18 +-- .../org/openapitools/model/BigCatDto.java | 6 +- .../openapitools/model/CapitalizationDto.java | 36 +++--- .../java/org/openapitools/model/CatDto.java | 6 +- .../org/openapitools/model/CategoryDto.java | 6 +- .../model/ChildWithNullableDto.java | 6 +- .../org/openapitools/model/ClassModelDto.java | 6 +- .../org/openapitools/model/ClientDto.java | 6 +- .../java/org/openapitools/model/DogDto.java | 6 +- .../org/openapitools/model/EnumArraysDto.java | 6 +- .../org/openapitools/model/EnumTestDto.java | 24 ++-- .../java/org/openapitools/model/FileDto.java | 6 +- .../model/FileSchemaTestClassDto.java | 6 +- .../org/openapitools/model/FormatTestDto.java | 60 ++++----- .../model/HasOnlyReadOnlyDto.java | 12 +- .../java/org/openapitools/model/ListDto.java | 6 +- ...ertiesAndAdditionalPropertiesClassDto.java | 12 +- .../model/Model200ResponseDto.java | 12 +- .../java/org/openapitools/model/NameDto.java | 18 +-- .../org/openapitools/model/NumberOnlyDto.java | 6 +- .../java/org/openapitools/model/OrderDto.java | 30 ++--- .../openapitools/model/OuterCompositeDto.java | 18 +-- .../model/ParentWithNullableDto.java | 6 +- .../java/org/openapitools/model/PetDto.java | 18 +-- .../openapitools/model/ReadOnlyFirstDto.java | 12 +- ...ponseObjectWithDifferentFieldNamesDto.java | 24 ++-- .../org/openapitools/model/ReturnDto.java | 6 +- .../model/SpecialModelNameDto.java | 6 +- .../java/org/openapitools/model/TagDto.java | 12 +- .../java/org/openapitools/model/UserDto.java | 48 +++---- .../org/openapitools/model/XmlItemDto.java | 120 +++++++++--------- 1248 files changed, 8669 insertions(+), 8401 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/api.mustache index 72ee1b8cb5be..6b2fc077bb5e 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 a5fc96cab155..abd66444e525 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 20ed2e4ac0d3..0af0e75823d7 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 69d36f1c3b04..ea2019e65c47 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 74a837988f3c..a255b5c7daf2 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 a9b35fe854b6..644da256005e 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 f933b433c370..1ffd76344ccb 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 99ccd36578c1..f525c6b3e524 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 b8226381ee13..214790318c77 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 b9da98849357..8c41d0fca550 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 @@ 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 67f33aa1f6a7..e4ead7083071 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 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 41eb2ed6e213..d96de2a8381e 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.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 @@ ResponseEntity addPet( 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 0e2e91b1ec73..b41c0f01cc94 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.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 122a44ba7bc4..7f85e2e1e64c 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.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 38f132ba4542..52ef92b93e2c 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 Category id(Long id) { @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 Category name(String name) { @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 fa47f8d98c32..62273b74b4c3 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 4dfa9dd4132e..2e699af47e2d 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 4cc370fb2111..0ae83e21c4cb 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -227,11 +227,11 @@ public Pet status(StatusEnum status) { @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 69fd62f84e4b..4c6df0f0931f 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 Tag id(Long id) { @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 Tag name(String name) { @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 b6206a76796e..08a3518b7b45 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 d89e2d495f5f..ee2d2c0a723c 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 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 @@ ResponseEntity addPet( 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 42a009aa64d1..cb49fbc4f63a 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 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 a089909442bb..e491893f0a17 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 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 d592426fd336..2ec3e3160afe 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 Category id(Long id) { @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 Category name(String name) { @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 15d6da4ff226..7716612070f8 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 b01430954d18..dcb0f8b3b2c6 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 d9d967eceda5..1c6536227657 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -106,15 +106,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -224,7 +224,7 @@ public Pet status(StatusEnum status) { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -232,7 +232,7 @@ public StatusEnum getStatus() { * @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 76c7c984abc3..63bee335e337 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 Tag id(Long id) { @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 Tag name(String name) { @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 68e44185f3f3..e4214f70a6a9 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 2b22f9538ff1..177afb2dc208 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 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 @@ ResponseEntity addPet( 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 e439bb6cbed6..665a2e599c35 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 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 f133f4e31261..dea969c13ead 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 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 6a157168a41f..ac617f57fc77 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 Category id(Long id) { @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 Category name(String name) { @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 15d6da4ff226..7716612070f8 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 b01430954d18..dcb0f8b3b2c6 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 23fee2533658..53ba6f1fd89b 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -221,11 +221,11 @@ public Pet status(StatusEnum status) { @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 76c7c984abc3..63bee335e337 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 Tag id(Long id) { @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 Tag name(String name) { @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 68e44185f3f3..e4214f70a6a9 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 d89e2d495f5f..ee2d2c0a723c 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 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 @@ ResponseEntity addPet( 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 42a009aa64d1..cb49fbc4f63a 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 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 a089909442bb..e491893f0a17 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 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 d592426fd336..2ec3e3160afe 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 Category id(Long id) { @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 Category name(String name) { @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 15d6da4ff226..7716612070f8 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 b01430954d18..dcb0f8b3b2c6 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 d9d967eceda5..1c6536227657 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -106,15 +106,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -224,7 +224,7 @@ public Pet status(StatusEnum status) { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -232,7 +232,7 @@ public StatusEnum getStatus() { * @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 76c7c984abc3..63bee335e337 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 Tag id(Long id) { @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 Tag name(String name) { @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 68e44185f3f3..e4214f70a6a9 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 09b2aa33c11f..23bb96bce526 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 @@ 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 f0cf0cd749b2..2820a5f19f19 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.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 @@ void createXmlItem( contentType = "application/json" ) Boolean fakeOuterBooleanSerialize( - @RequestBody(required = false) Boolean body + @RequestBody(required = false) @Nullable Boolean body ); @@ -83,7 +84,7 @@ Boolean fakeOuterBooleanSerialize( contentType = "application/json" ) OuterCompositeDto fakeOuterCompositeSerialize( - @RequestBody(required = false) OuterCompositeDto outerCompositeDto + @RequestBody(required = false) @Nullable OuterCompositeDto outerCompositeDto ); @@ -102,7 +103,7 @@ OuterCompositeDto fakeOuterCompositeSerialize( contentType = "application/json" ) BigDecimal fakeOuterNumberSerialize( - @RequestBody(required = false) BigDecimal body + @RequestBody(required = false) @Nullable BigDecimal body ); @@ -121,7 +122,7 @@ BigDecimal fakeOuterNumberSerialize( contentType = "application/json" ) String fakeOuterStringSerialize( - @RequestBody(required = false) String body + @RequestBody(required = false) @Nullable String body ); @@ -252,12 +253,12 @@ void testEndpointParameters( 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 @@ void testGroupParameters( @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 c0c741ede6e8..12cbd7679ab7 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 @@ 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 d65052caf8eb..6d4dc0a0ea1f 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.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 @@ void addPet( ) 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 6e40d78ea382..9e4477ddd45c 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 @@ 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 fe5c651cfc2b..b49467a07d76 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 @@ 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 9ce9c72f88c9..40e204116a13 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 AdditionalPropertiesAnyTypeDto name(String name) { */ @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 ac8c3ef47356..1ae21edce75e 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 AdditionalPropertiesArrayDto name(String name) { */ @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 50ab29270e1a..4d6bfb759bf8 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 AdditionalPropertiesBooleanDto name(String name) { */ @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 c0d40e01a7cf..c0fb00586eef 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClassDto anytype1(Object anytype1) { + public AdditionalPropertiesClassDto anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -286,11 +286,11 @@ public AdditionalPropertiesClassDto anytype1(Object anytype1) { */ @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 void setAnytype2(JsonNullable anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClassDto anytype3(Object anytype3) { + public AdditionalPropertiesClassDto anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -324,11 +324,11 @@ public AdditionalPropertiesClassDto anytype3(Object anytype3) { */ @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 10253e3292ce..eb3aa5291938 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 AdditionalPropertiesIntegerDto name(String name) { */ @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 f8d894f99fe0..d89dc02ff321 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 AdditionalPropertiesNumberDto name(String name) { */ @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 6df09a44e79c..362f004ffc66 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 AdditionalPropertiesObjectDto name(String name) { */ @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 d71ca8bfb9dc..a653f0a3cee5 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 AdditionalPropertiesStringDto name(String name) { */ @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 49242582adc8..fee8a26f95a1 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 ApiResponseDto code(Integer code) { */ @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 ApiResponseDto type(String type) { */ @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 ApiResponseDto message(String message) { */ @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 6855ab673fb2..a63b58de415d 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 BigCatDto() { super(); } - public BigCatDto kind(KindEnum kind) { + public BigCatDto kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -84,11 +84,11 @@ public BigCatDto kind(KindEnum kind) { */ @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 e27517782d46..ae9c5082660d 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 CapitalizationDto smallCamel(String smallCamel) { */ @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 CapitalizationDto capitalCamel(String capitalCamel) { */ @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 CapitalizationDto smallSnake(String smallSnake) { */ @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 CapitalizationDto capitalSnake(String capitalSnake) { */ @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 CapitalizationDto scAETHFlowPoints(String scAETHFlowPoints) { */ @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 CapitalizationDto ATT_NAME(String ATT_NAME) { */ @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 1cd32fa40342..6e60cde517b7 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 CatDto() { super(); } - public CatDto declawed(Boolean declawed) { + public CatDto declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -51,11 +51,11 @@ public CatDto declawed(Boolean declawed) { */ @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 c1d07153c2d7..55a0832c806b 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 CategoryDto() { super(); } - public CategoryDto id(Long id) { + public CategoryDto id(@Nullable Long id) { this.id = id; return this; } @@ -41,11 +41,11 @@ public CategoryDto id(Long id) { */ @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 d7b48f53cccc..40fc4ce23643 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 ChildWithNullableDto otherProperty(String otherProperty) { */ @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 d14e0eae0776..587ffef3ffb7 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 ClassModelDto propertyClass(String propertyClass) { */ @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 bbbd994f2535..fd7a849eab4d 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 ClientDto client(String 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-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 da71cf80357c..521efd176085 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 DogDto() { super(); } - public DogDto breed(String breed) { + public DogDto breed(@Nullable String breed) { this.breed = breed; return this; } @@ -44,11 +44,11 @@ public DogDto breed(String breed) { */ @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 e6897313a399..5e85461537c8 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 static ArrayEnumEnum fromValue(String value) { 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 EnumArraysDto justSymbol(JustSymbolEnum justSymbol) { */ @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 3b113e408288..f20d8b484498 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 EnumTestDto() { super(); } - public EnumTestDto enumString(EnumStringEnum enumString) { + public EnumTestDto enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -193,11 +193,11 @@ public EnumTestDto enumString(EnumStringEnum enumString) { */ @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTestDto enumInteger(EnumIntegerEnum enumInteger) { + public EnumTestDto enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -231,15 +231,15 @@ public EnumTestDto enumInteger(EnumIntegerEnum enumInteger) { */ @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 EnumTestDto enumNumber(EnumNumberEnum enumNumber) { */ @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 EnumTestDto outerEnum(OuterEnumDto outerEnum) { */ @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 531b77586e2a..f6328321ebbc 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 FileDto sourceURI(String sourceURI) { */ @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 7a8507a14849..d87aee1b89f8 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 FileSchemaTestClassDto file(FileDto file) { */ @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 f56d9dcc7ee1..7c8ebbb5f6c4 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 FormatTestDto() { super(); } - public FormatTestDto integer(Integer integer) { + public FormatTestDto integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -75,15 +75,15 @@ public FormatTestDto integer(Integer integer) { */ @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 FormatTestDto int32(Integer int32) { */ @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 FormatTestDto int64(Long int64) { */ @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTestDto _float(Float _float) { + public FormatTestDto _float(@Nullable Float _float) { this._float = _float; return this; } @@ -157,15 +157,15 @@ public FormatTestDto _float(Float _float) { */ @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 FormatTestDto _double(Double _double) { */ @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 FormatTestDto string(String string) { */ @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 void setByte(byte[] _byte) { 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 FormatTestDto binary(org.springframework.core.io.Resource binary) { */ @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 void setDate(LocalDate date) { this.date = date; } - public FormatTestDto dateTime(OffsetDateTime dateTime) { + public FormatTestDto dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -273,15 +273,15 @@ public FormatTestDto dateTime(OffsetDateTime dateTime) { */ @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 FormatTestDto uuid(UUID uuid) { */ @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 void setPassword(String password) { this.password = password; } - public FormatTestDto bigDecimal(BigDecimal bigDecimal) { + public FormatTestDto bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -330,11 +330,11 @@ public FormatTestDto bigDecimal(BigDecimal bigDecimal) { */ @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 dd6ebc4b0cd6..d11bd7841529 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 HasOnlyReadOnlyDto bar(String bar) { */ @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 HasOnlyReadOnlyDto foo(String foo) { */ @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 c5808d871907..f20458d88061 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 ListDto _123list(String _123list) { */ @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 9ac793df5775..8c0b48b33e63 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 MixedPropertiesAndAdditionalPropertiesClassDto uuid(UUID uuid) { */ @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 MixedPropertiesAndAdditionalPropertiesClassDto dateTime(OffsetDateTime da */ @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 c90ea042da8d..9ab3a2c445fb 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 Model200ResponseDto name(Integer name) { */ @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 Model200ResponseDto propertyClass(String propertyClass) { */ @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 7f21b0d1c276..a12ecc2a1183 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 void setName(Integer name) { this.name = name; } - public NameDto snakeCase(Integer snakeCase) { + public NameDto snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -64,15 +64,15 @@ public NameDto snakeCase(Integer snakeCase) { */ @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 NameDto property(String property) { */ @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 NameDto _123number(Integer _123number) { */ @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 6aed23dc5cdb..5fc6d0aaf0ac 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 NumberOnlyDto justNumber(BigDecimal justNumber) { */ @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 3213a4834f80..810e46516c38 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 static StatusEnum fromValue(String value) { 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 OrderDto id(Long id) { */ @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 OrderDto petId(Long petId) { */ @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 OrderDto quantity(Integer quantity) { */ @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 OrderDto shipDate(OffsetDateTime shipDate) { */ @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 OrderDto status(StatusEnum 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-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 d6d971b70deb..02657a50603e 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 OuterCompositeDto myNumber(BigDecimal myNumber) { */ @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 OuterCompositeDto myString(String myString) { */ @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 OuterCompositeDto myBoolean(Boolean myBoolean) { */ @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 973da496e832..90458d0a3278 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 static TypeEnum fromValue(String value) { 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 ParentWithNullableDto type(TypeEnum type) { */ @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 baf1a6921058..7695b075b5ac 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 PetDto() { super(); } - public PetDto id(Long id) { + public PetDto id(@Nullable Long id) { this.id = id; return this; } @@ -98,15 +98,15 @@ public PetDto id(Long id) { */ @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 PetDto category(CategoryDto category) { */ @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 void setTags(List tags) { this.tags = tags; } - public PetDto status(StatusEnum status) { + public PetDto status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -212,7 +212,7 @@ public PetDto status(StatusEnum status) { @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -220,7 +220,7 @@ public StatusEnum getStatus() { * @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 4c93c9931166..d1d2f3ce267c 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 ReadOnlyFirstDto bar(String bar) { */ @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 ReadOnlyFirstDto baz(String baz) { */ @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 ebf3c803735f..98262e290b61 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 ResponseObjectWithDifferentFieldNamesDto normalPropertyName(String normal */ @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 ResponseObjectWithDifferentFieldNamesDto UPPER_CASE_PROPERTY_SNAKE(String */ @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 ResponseObjectWithDifferentFieldNamesDto lowerCasePropertyDashes(String l */ @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 ResponseObjectWithDifferentFieldNamesDto propertyNameWithSpaces(String pr */ @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 67372847e3f3..d38fc76980b8 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 ReturnDto _return(Integer _return) { */ @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 83476b9ca56b..456f94209aa3 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 800685db5163..4650aa2c9d9a 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 TagDto id(Long id) { */ @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 TagDto name(String name) { */ @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 d6f764de1afc..74c97fd6d19b 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 UserDto id(Long id) { */ @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 UserDto username(String username) { */ @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 UserDto firstName(String firstName) { */ @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 UserDto lastName(String lastName) { */ @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 UserDto email(String email) { */ @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 UserDto password(String password) { */ @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 UserDto phone(String phone) { */ @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 UserDto userStatus(Integer userStatus) { */ @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 d67617003c07..15762073cb5a 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 XmlItemDto attributeString(String attributeString) { */ @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 XmlItemDto attributeNumber(BigDecimal attributeNumber) { */ @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 XmlItemDto attributeInteger(Integer attributeInteger) { */ @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 XmlItemDto attributeBoolean(Boolean attributeBoolean) { */ @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItemDto nameString(String nameString) { + public XmlItemDto nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -207,15 +207,15 @@ public XmlItemDto nameString(String nameString) { */ @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 XmlItemDto nameNumber(BigDecimal nameNumber) { */ @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 XmlItemDto nameInteger(Integer nameInteger) { */ @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 XmlItemDto nameBoolean(Boolean nameBoolean) { */ @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItemDto prefixString(String prefixString) { + public XmlItemDto prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -337,15 +337,15 @@ public XmlItemDto prefixString(String prefixString) { */ @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 XmlItemDto prefixNumber(BigDecimal prefixNumber) { */ @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 XmlItemDto prefixInteger(Integer prefixInteger) { */ @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 XmlItemDto prefixBoolean(Boolean prefixBoolean) { */ @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItemDto namespaceString(String namespaceString) { + public XmlItemDto namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -467,15 +467,15 @@ public XmlItemDto namespaceString(String namespaceString) { */ @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 XmlItemDto namespaceNumber(BigDecimal namespaceNumber) { */ @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 XmlItemDto namespaceInteger(Integer namespaceInteger) { */ @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 XmlItemDto namespaceBoolean(Boolean namespaceBoolean) { */ @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItemDto prefixNsString(String prefixNsString) { + public XmlItemDto prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -597,15 +597,15 @@ public XmlItemDto prefixNsString(String prefixNsString) { */ @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 XmlItemDto prefixNsNumber(BigDecimal prefixNsNumber) { */ @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 XmlItemDto prefixNsInteger(Integer prefixNsInteger) { */ @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 XmlItemDto prefixNsBoolean(Boolean prefixNsBoolean) { */ @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 5148d101ff0f..fb78ad1920f6 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 @@ 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 476adda20f8c..55d6e89358ca 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.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 @@ Mono testEndpointParameters( 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 @@ Mono testGroupParameters( @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 c0e04768a5f0..a4e6780ef50b 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 @@ 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 df65df4f9cd7..1f95ea2c3e71 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.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 @@ Mono addPet( ) 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 84ae7f4b6093..3429a57013fa 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 @@ 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 0bae668ba519..fe05b4009a04 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 @@ 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 f90db6bbeb2c..c2df28430d4e 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 AdditionalPropertiesAnyType name(String name) { */ @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 833ebb81b351..1553218a363d 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 AdditionalPropertiesArray name(String name) { */ @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 9dfbd7c4906f..4be3deaeadbb 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 AdditionalPropertiesBoolean name(String name) { */ @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 22218d63ba1b..ca567881bd17 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -284,11 +284,11 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { */ @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 void setAnytype2(JsonNullable anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -322,11 +322,11 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { */ @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 58b63a190dc8..8b8eb032c407 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 AdditionalPropertiesInteger name(String name) { */ @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 11ae393dc692..bb69fbafcc51 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 AdditionalPropertiesNumber name(String name) { */ @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 0929cb26fa7e..e8ce0a2c6a38 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 AdditionalPropertiesObject name(String name) { */ @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 ffc330e6c3c1..aed5fa70974d 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 AdditionalPropertiesString name(String name) { */ @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 df1b5d1b6d2f..651004556e5c 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 BigCat(String className) { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -89,11 +89,11 @@ public BigCat kind(KindEnum kind) { */ @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 c08586fdece5..b3f72b35236b 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 Capitalization smallCamel(String smallCamel) { */ @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 Capitalization capitalCamel(String capitalCamel) { */ @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 Capitalization smallSnake(String smallSnake) { */ @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 Capitalization capitalSnake(String capitalSnake) { */ @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { */ @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 Capitalization ATT_NAME(String ATT_NAME) { */ @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 878f6202b0fe..5fdeea7413cd 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 Cat(String className) { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -57,11 +57,11 @@ public Cat declawed(Boolean declawed) { */ @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 ae6aaf461a24..08e7253dfbb9 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 Category(String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -46,11 +46,11 @@ public Category id(Long id) { */ @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 80d3dbef5daa..942258afed04 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 ChildWithNullable otherProperty(String otherProperty) { */ @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 75b96c2095ac..d73d14f5100c 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 ClassModel propertyClass(String propertyClass) { */ @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 fd2946d72f03..20160c696647 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 Client client(String 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 d9308b469232..b2cda62f3071 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 Dog(String className) { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -49,11 +49,11 @@ public Dog breed(String breed) { */ @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 a5f33817cb4e..38713b94ad77 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 static ArrayEnumEnum fromValue(String value) { 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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { */ @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 03675b9ba811..574a9b8bec91 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 EnumTest(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -200,11 +200,11 @@ public EnumTest enumString(EnumStringEnum enumString) { */ @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -238,15 +238,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { */ @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { */ @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 EnumTest outerEnum(OuterEnum outerEnum) { */ @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 052c7674e1d7..42da1eeee090 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 File sourceURI(String sourceURI) { */ @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 127b5776bb7f..1ed8d88df91d 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 FileSchemaTestClass file(File file) { */ @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 435d2cfe0d5c..bed0d178bb82 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 FormatTest(BigDecimal number, byte[] _byte, LocalDate date, String passwo this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -85,15 +85,15 @@ public FormatTest integer(Integer integer) { */ @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 FormatTest int32(Integer int32) { */ @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 FormatTest int64(Long int64) { */ @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -167,15 +167,15 @@ public FormatTest _float(Float _float) { */ @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 FormatTest _double(Double _double) { */ @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 FormatTest string(String string) { */ @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { */ @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -283,15 +283,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { */ @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 FormatTest uuid(UUID uuid) { */ @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -340,11 +340,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { */ @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 8c7e0161755e..a37cfe63d554 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 HasOnlyReadOnly bar(String bar) { */ @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 HasOnlyReadOnly foo(String foo) { */ @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 7791844d8e82..2f9abb13f2da 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { */ @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT */ @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 e3c8d29d494c..e9fc495083c3 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 Model200Response name(Integer name) { */ @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 Model200Response propertyClass(String propertyClass) { */ @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 d1d3b132bb8f..63b3cea0e85f 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 ModelApiResponse code(Integer code) { */ @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 ModelApiResponse type(String type) { */ @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 ModelApiResponse message(String message) { */ @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 91b7e7d66b90..4198ff2174a3 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 ModelList _123list(String _123list) { */ @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 c4477acda6a3..543ed4a86d11 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 ModelReturn _return(Integer _return) { */ @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 5353eee13dda..188e5d98a030 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { */ @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 Name property(String property) { */ @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 Name _123number(Integer _123number) { */ @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 2386db37f8ce..2686fb517109 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 NumberOnly justNumber(BigDecimal justNumber) { */ @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 9552d57f2486..7292644ec28b 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { */ @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 Order petId(Long petId) { */ @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 Order quantity(Integer quantity) { */ @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 Order shipDate(OffsetDateTime shipDate) { */ @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 Order status(StatusEnum 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-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 6e39e5dd2c0f..2abe55a063c7 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 OuterComposite myNumber(BigDecimal myNumber) { */ @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 OuterComposite myString(String myString) { */ @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 OuterComposite myBoolean(Boolean myBoolean) { */ @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 eaf81d797f6e..1f304093ab61 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 static TypeEnum fromValue(String value) { 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 ParentWithNullable type(TypeEnum type) { */ @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 a005de493909..38a704c20ca2 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 Pet(String name, Set photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -104,15 +104,15 @@ public Pet id(Long id) { */ @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 Pet category(Category category) { */ @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 void setTags(List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -218,7 +218,7 @@ public Pet status(StatusEnum status) { @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -226,7 +226,7 @@ public StatusEnum getStatus() { * @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 e62750ea9708..20a6e1ecfe43 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 ReadOnlyFirst bar(String bar) { */ @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 ReadOnlyFirst baz(String baz) { */ @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 e7132db11e31..a6de58cfacd7 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 ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPro */ @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 ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UP */ @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 ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowe */ @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 ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String prope */ @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 7fe53f3a23b4..6debc34bcbdf 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 dc6d143b0323..60011daf4f04 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 Tag id(Long id) { */ @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 Tag name(String name) { */ @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 d32e0783be09..25417c094f4b 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 User id(Long id) { */ @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 User username(String username) { */ @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 User firstName(String firstName) { */ @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 User lastName(String lastName) { */ @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 User email(String email) { */ @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 User password(String password) { */ @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 User phone(String phone) { */ @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 User userStatus(Integer userStatus) { */ @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 ff067c350f46..6302cedc4285 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 XmlItem attributeString(String attributeString) { */ @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 XmlItem attributeNumber(BigDecimal attributeNumber) { */ @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 XmlItem attributeInteger(Integer attributeInteger) { */ @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 XmlItem attributeBoolean(Boolean attributeBoolean) { */ @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -205,15 +205,15 @@ public XmlItem nameString(String nameString) { */ @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 XmlItem nameNumber(BigDecimal nameNumber) { */ @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 XmlItem nameInteger(Integer nameInteger) { */ @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 XmlItem nameBoolean(Boolean nameBoolean) { */ @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -335,15 +335,15 @@ public XmlItem prefixString(String prefixString) { */ @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 XmlItem prefixNumber(BigDecimal prefixNumber) { */ @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 XmlItem prefixInteger(Integer prefixInteger) { */ @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 XmlItem prefixBoolean(Boolean prefixBoolean) { */ @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -465,15 +465,15 @@ public XmlItem namespaceString(String namespaceString) { */ @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { */ @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 XmlItem namespaceInteger(Integer namespaceInteger) { */ @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { */ @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -595,15 +595,15 @@ public XmlItem prefixNsString(String prefixNsString) { */ @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { */ @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { */ @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { */ @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 962e5deaa1e4..e80c40c1fe33 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 @@ 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 be0d8b4d674a..c929f8174da6 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.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 @@ Mono> testEndpointParameters( 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 @@ Mono> testGroupParameters( @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 4cc7aa37b38d..784f997a9c4a 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 @@ 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 5405ef74b86f..186f85f9c114 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.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 @@ Mono> addPet( ) 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 74cddfc9ee19..94a61065f09b 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 @@ 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 6a065d4418bf..08719b7634b5 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 @@ 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 f90db6bbeb2c..c2df28430d4e 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 AdditionalPropertiesAnyType name(String name) { */ @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 833ebb81b351..1553218a363d 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 AdditionalPropertiesArray name(String name) { */ @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 9dfbd7c4906f..4be3deaeadbb 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 AdditionalPropertiesBoolean name(String name) { */ @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 22218d63ba1b..ca567881bd17 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -284,11 +284,11 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { */ @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 void setAnytype2(JsonNullable anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -322,11 +322,11 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { */ @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 58b63a190dc8..8b8eb032c407 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 AdditionalPropertiesInteger name(String name) { */ @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 11ae393dc692..bb69fbafcc51 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 AdditionalPropertiesNumber name(String name) { */ @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 0929cb26fa7e..e8ce0a2c6a38 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 AdditionalPropertiesObject name(String name) { */ @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 ffc330e6c3c1..aed5fa70974d 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 AdditionalPropertiesString name(String name) { */ @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 df1b5d1b6d2f..651004556e5c 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 BigCat(String className) { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -89,11 +89,11 @@ public BigCat kind(KindEnum kind) { */ @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 c08586fdece5..b3f72b35236b 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 Capitalization smallCamel(String smallCamel) { */ @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 Capitalization capitalCamel(String capitalCamel) { */ @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 Capitalization smallSnake(String smallSnake) { */ @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 Capitalization capitalSnake(String capitalSnake) { */ @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { */ @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 Capitalization ATT_NAME(String ATT_NAME) { */ @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 878f6202b0fe..5fdeea7413cd 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 Cat(String className) { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -57,11 +57,11 @@ public Cat declawed(Boolean declawed) { */ @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 ae6aaf461a24..08e7253dfbb9 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 Category(String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -46,11 +46,11 @@ public Category id(Long id) { */ @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 80d3dbef5daa..942258afed04 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 ChildWithNullable otherProperty(String otherProperty) { */ @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 75b96c2095ac..d73d14f5100c 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 ClassModel propertyClass(String propertyClass) { */ @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 fd2946d72f03..20160c696647 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 Client client(String 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 d9308b469232..b2cda62f3071 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 Dog(String className) { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -49,11 +49,11 @@ public Dog breed(String breed) { */ @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 a5f33817cb4e..38713b94ad77 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 static ArrayEnumEnum fromValue(String value) { 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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { */ @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 03675b9ba811..574a9b8bec91 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 EnumTest(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -200,11 +200,11 @@ public EnumTest enumString(EnumStringEnum enumString) { */ @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -238,15 +238,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { */ @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { */ @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 EnumTest outerEnum(OuterEnum outerEnum) { */ @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 052c7674e1d7..42da1eeee090 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 File sourceURI(String sourceURI) { */ @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 127b5776bb7f..1ed8d88df91d 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 FileSchemaTestClass file(File file) { */ @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 435d2cfe0d5c..bed0d178bb82 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 FormatTest(BigDecimal number, byte[] _byte, LocalDate date, String passwo this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -85,15 +85,15 @@ public FormatTest integer(Integer integer) { */ @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 FormatTest int32(Integer int32) { */ @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 FormatTest int64(Long int64) { */ @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -167,15 +167,15 @@ public FormatTest _float(Float _float) { */ @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 FormatTest _double(Double _double) { */ @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 FormatTest string(String string) { */ @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { */ @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -283,15 +283,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { */ @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 FormatTest uuid(UUID uuid) { */ @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -340,11 +340,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { */ @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 8c7e0161755e..a37cfe63d554 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 HasOnlyReadOnly bar(String bar) { */ @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 HasOnlyReadOnly foo(String foo) { */ @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 7791844d8e82..2f9abb13f2da 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { */ @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT */ @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 e3c8d29d494c..e9fc495083c3 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 Model200Response name(Integer name) { */ @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 Model200Response propertyClass(String propertyClass) { */ @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 d1d3b132bb8f..63b3cea0e85f 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 ModelApiResponse code(Integer code) { */ @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 ModelApiResponse type(String type) { */ @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 ModelApiResponse message(String message) { */ @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 91b7e7d66b90..4198ff2174a3 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 ModelList _123list(String _123list) { */ @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 c4477acda6a3..543ed4a86d11 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 ModelReturn _return(Integer _return) { */ @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 5353eee13dda..188e5d98a030 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { */ @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 Name property(String property) { */ @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 Name _123number(Integer _123number) { */ @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 2386db37f8ce..2686fb517109 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 NumberOnly justNumber(BigDecimal justNumber) { */ @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 9552d57f2486..7292644ec28b 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { */ @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 Order petId(Long petId) { */ @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 Order quantity(Integer quantity) { */ @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 Order shipDate(OffsetDateTime shipDate) { */ @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 Order status(StatusEnum 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-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 6e39e5dd2c0f..2abe55a063c7 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 OuterComposite myNumber(BigDecimal myNumber) { */ @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 OuterComposite myString(String myString) { */ @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 OuterComposite myBoolean(Boolean myBoolean) { */ @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 eaf81d797f6e..1f304093ab61 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 static TypeEnum fromValue(String value) { 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 ParentWithNullable type(TypeEnum type) { */ @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 a005de493909..38a704c20ca2 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 Pet(String name, Set photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -104,15 +104,15 @@ public Pet id(Long id) { */ @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 Pet category(Category category) { */ @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 void setTags(List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -218,7 +218,7 @@ public Pet status(StatusEnum status) { @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -226,7 +226,7 @@ public StatusEnum getStatus() { * @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 e62750ea9708..20a6e1ecfe43 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 ReadOnlyFirst bar(String bar) { */ @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 ReadOnlyFirst baz(String baz) { */ @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 e7132db11e31..a6de58cfacd7 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 ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPro */ @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 ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UP */ @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 ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowe */ @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 ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String prope */ @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 7fe53f3a23b4..6debc34bcbdf 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 dc6d143b0323..60011daf4f04 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 Tag id(Long id) { */ @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 Tag name(String name) { */ @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 d32e0783be09..25417c094f4b 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 User id(Long id) { */ @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 User username(String username) { */ @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 User firstName(String firstName) { */ @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 User lastName(String lastName) { */ @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 User email(String email) { */ @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 User password(String password) { */ @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 User phone(String phone) { */ @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 User userStatus(Integer userStatus) { */ @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 ff067c350f46..6302cedc4285 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 XmlItem attributeString(String attributeString) { */ @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 XmlItem attributeNumber(BigDecimal attributeNumber) { */ @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 XmlItem attributeInteger(Integer attributeInteger) { */ @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 XmlItem attributeBoolean(Boolean attributeBoolean) { */ @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -205,15 +205,15 @@ public XmlItem nameString(String nameString) { */ @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 XmlItem nameNumber(BigDecimal nameNumber) { */ @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 XmlItem nameInteger(Integer nameInteger) { */ @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 XmlItem nameBoolean(Boolean nameBoolean) { */ @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -335,15 +335,15 @@ public XmlItem prefixString(String prefixString) { */ @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 XmlItem prefixNumber(BigDecimal prefixNumber) { */ @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 XmlItem prefixInteger(Integer prefixInteger) { */ @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 XmlItem prefixBoolean(Boolean prefixBoolean) { */ @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -465,15 +465,15 @@ public XmlItem namespaceString(String namespaceString) { */ @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { */ @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 XmlItem namespaceInteger(Integer namespaceInteger) { */ @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { */ @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -595,15 +595,15 @@ public XmlItem prefixNsString(String prefixNsString) { */ @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { */ @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { */ @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { */ @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 beb112c8dcb5..912a6e5607a6 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 @@ 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 a5bfc4b3d843..69a3a73a6323 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.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 @@ ResponseEntity createXmlItem( contentType = "application/json" ) ResponseEntity fakeOuterBooleanSerialize( - @RequestBody(required = false) Boolean body + @RequestBody(required = false) @Nullable Boolean body ); @@ -80,7 +81,7 @@ ResponseEntity fakeOuterBooleanSerialize( contentType = "application/json" ) ResponseEntity fakeOuterCompositeSerialize( - @RequestBody(required = false) OuterCompositeDto outerCompositeDto + @RequestBody(required = false) @Nullable OuterCompositeDto outerCompositeDto ); @@ -98,7 +99,7 @@ ResponseEntity fakeOuterCompositeSerialize( contentType = "application/json" ) ResponseEntity fakeOuterNumberSerialize( - @RequestBody(required = false) BigDecimal body + @RequestBody(required = false) @Nullable BigDecimal body ); @@ -116,7 +117,7 @@ ResponseEntity fakeOuterNumberSerialize( contentType = "application/json" ) ResponseEntity fakeOuterStringSerialize( - @RequestBody(required = false) String body + @RequestBody(required = false) @Nullable String body ); @@ -242,12 +243,12 @@ ResponseEntity testEndpointParameters( 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 @@ ResponseEntity testGroupParameters( @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 8c3d60cc9732..682fcbfedc23 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 @@ 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 7aeaa136275d..ce3810a7f415 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.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 @@ ResponseEntity addPet( ) 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 c36b3cd2e293..3553b2fbdfdd 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 @@ 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 8fafb9fabf97..e0a7fbaa4499 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 @@ 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 9ce9c72f88c9..40e204116a13 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 AdditionalPropertiesAnyTypeDto name(String name) { */ @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 ac8c3ef47356..1ae21edce75e 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 AdditionalPropertiesArrayDto name(String name) { */ @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 50ab29270e1a..4d6bfb759bf8 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 AdditionalPropertiesBooleanDto name(String name) { */ @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 c0d40e01a7cf..c0fb00586eef 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClassDto anytype1(Object anytype1) { + public AdditionalPropertiesClassDto anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -286,11 +286,11 @@ public AdditionalPropertiesClassDto anytype1(Object anytype1) { */ @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 void setAnytype2(JsonNullable anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClassDto anytype3(Object anytype3) { + public AdditionalPropertiesClassDto anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -324,11 +324,11 @@ public AdditionalPropertiesClassDto anytype3(Object anytype3) { */ @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 10253e3292ce..eb3aa5291938 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 AdditionalPropertiesIntegerDto name(String name) { */ @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 f8d894f99fe0..d89dc02ff321 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 AdditionalPropertiesNumberDto name(String name) { */ @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 6df09a44e79c..362f004ffc66 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 AdditionalPropertiesObjectDto name(String name) { */ @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 d71ca8bfb9dc..a653f0a3cee5 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 AdditionalPropertiesStringDto name(String name) { */ @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 49242582adc8..fee8a26f95a1 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 ApiResponseDto code(Integer code) { */ @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 ApiResponseDto type(String type) { */ @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 ApiResponseDto message(String message) { */ @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 6855ab673fb2..a63b58de415d 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 BigCatDto() { super(); } - public BigCatDto kind(KindEnum kind) { + public BigCatDto kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -84,11 +84,11 @@ public BigCatDto kind(KindEnum kind) { */ @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 e27517782d46..ae9c5082660d 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 CapitalizationDto smallCamel(String smallCamel) { */ @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 CapitalizationDto capitalCamel(String capitalCamel) { */ @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 CapitalizationDto smallSnake(String smallSnake) { */ @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 CapitalizationDto capitalSnake(String capitalSnake) { */ @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 CapitalizationDto scAETHFlowPoints(String scAETHFlowPoints) { */ @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 CapitalizationDto ATT_NAME(String ATT_NAME) { */ @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 1cd32fa40342..6e60cde517b7 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 CatDto() { super(); } - public CatDto declawed(Boolean declawed) { + public CatDto declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -51,11 +51,11 @@ public CatDto declawed(Boolean declawed) { */ @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 c1d07153c2d7..55a0832c806b 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 CategoryDto() { super(); } - public CategoryDto id(Long id) { + public CategoryDto id(@Nullable Long id) { this.id = id; return this; } @@ -41,11 +41,11 @@ public CategoryDto id(Long id) { */ @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 d7b48f53cccc..40fc4ce23643 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 ChildWithNullableDto otherProperty(String otherProperty) { */ @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 d14e0eae0776..587ffef3ffb7 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 ClassModelDto propertyClass(String propertyClass) { */ @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 bbbd994f2535..fd7a849eab4d 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 ClientDto client(String 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/src/main/java/org/openapitools/model/DogDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/DogDto.java index da71cf80357c..521efd176085 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 DogDto() { super(); } - public DogDto breed(String breed) { + public DogDto breed(@Nullable String breed) { this.breed = breed; return this; } @@ -44,11 +44,11 @@ public DogDto breed(String breed) { */ @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 e6897313a399..5e85461537c8 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 static ArrayEnumEnum fromValue(String value) { 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 EnumArraysDto justSymbol(JustSymbolEnum justSymbol) { */ @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 3b113e408288..f20d8b484498 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 EnumTestDto() { super(); } - public EnumTestDto enumString(EnumStringEnum enumString) { + public EnumTestDto enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -193,11 +193,11 @@ public EnumTestDto enumString(EnumStringEnum enumString) { */ @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTestDto enumInteger(EnumIntegerEnum enumInteger) { + public EnumTestDto enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -231,15 +231,15 @@ public EnumTestDto enumInteger(EnumIntegerEnum enumInteger) { */ @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 EnumTestDto enumNumber(EnumNumberEnum enumNumber) { */ @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 EnumTestDto outerEnum(OuterEnumDto outerEnum) { */ @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 531b77586e2a..f6328321ebbc 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 FileDto sourceURI(String sourceURI) { */ @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 7a8507a14849..d87aee1b89f8 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 FileSchemaTestClassDto file(FileDto file) { */ @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 f56d9dcc7ee1..7c8ebbb5f6c4 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 FormatTestDto() { super(); } - public FormatTestDto integer(Integer integer) { + public FormatTestDto integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -75,15 +75,15 @@ public FormatTestDto integer(Integer integer) { */ @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 FormatTestDto int32(Integer int32) { */ @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 FormatTestDto int64(Long int64) { */ @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTestDto _float(Float _float) { + public FormatTestDto _float(@Nullable Float _float) { this._float = _float; return this; } @@ -157,15 +157,15 @@ public FormatTestDto _float(Float _float) { */ @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 FormatTestDto _double(Double _double) { */ @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 FormatTestDto string(String string) { */ @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 void setByte(byte[] _byte) { 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 FormatTestDto binary(org.springframework.core.io.Resource binary) { */ @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 void setDate(LocalDate date) { this.date = date; } - public FormatTestDto dateTime(OffsetDateTime dateTime) { + public FormatTestDto dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -273,15 +273,15 @@ public FormatTestDto dateTime(OffsetDateTime dateTime) { */ @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 FormatTestDto uuid(UUID uuid) { */ @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 void setPassword(String password) { this.password = password; } - public FormatTestDto bigDecimal(BigDecimal bigDecimal) { + public FormatTestDto bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -330,11 +330,11 @@ public FormatTestDto bigDecimal(BigDecimal bigDecimal) { */ @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 dd6ebc4b0cd6..d11bd7841529 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 HasOnlyReadOnlyDto bar(String bar) { */ @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 HasOnlyReadOnlyDto foo(String foo) { */ @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 c5808d871907..f20458d88061 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 ListDto _123list(String _123list) { */ @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 9ac793df5775..8c0b48b33e63 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 MixedPropertiesAndAdditionalPropertiesClassDto uuid(UUID uuid) { */ @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 MixedPropertiesAndAdditionalPropertiesClassDto dateTime(OffsetDateTime da */ @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 c90ea042da8d..9ab3a2c445fb 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 Model200ResponseDto name(Integer name) { */ @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 Model200ResponseDto propertyClass(String propertyClass) { */ @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 7f21b0d1c276..a12ecc2a1183 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 void setName(Integer name) { this.name = name; } - public NameDto snakeCase(Integer snakeCase) { + public NameDto snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -64,15 +64,15 @@ public NameDto snakeCase(Integer snakeCase) { */ @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 NameDto property(String property) { */ @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 NameDto _123number(Integer _123number) { */ @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 6aed23dc5cdb..5fc6d0aaf0ac 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 NumberOnlyDto justNumber(BigDecimal justNumber) { */ @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 3213a4834f80..810e46516c38 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 static StatusEnum fromValue(String value) { 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 OrderDto id(Long id) { */ @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 OrderDto petId(Long petId) { */ @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 OrderDto quantity(Integer quantity) { */ @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 OrderDto shipDate(OffsetDateTime shipDate) { */ @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 OrderDto status(StatusEnum 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-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 d6d971b70deb..02657a50603e 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 OuterCompositeDto myNumber(BigDecimal myNumber) { */ @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 OuterCompositeDto myString(String myString) { */ @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 OuterCompositeDto myBoolean(Boolean myBoolean) { */ @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 973da496e832..90458d0a3278 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 static TypeEnum fromValue(String value) { 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 ParentWithNullableDto type(TypeEnum type) { */ @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 baf1a6921058..7695b075b5ac 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 PetDto() { super(); } - public PetDto id(Long id) { + public PetDto id(@Nullable Long id) { this.id = id; return this; } @@ -98,15 +98,15 @@ public PetDto id(Long id) { */ @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 PetDto category(CategoryDto category) { */ @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 void setTags(List tags) { this.tags = tags; } - public PetDto status(StatusEnum status) { + public PetDto status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -212,7 +212,7 @@ public PetDto status(StatusEnum status) { @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -220,7 +220,7 @@ public StatusEnum getStatus() { * @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 4c93c9931166..d1d2f3ce267c 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 ReadOnlyFirstDto bar(String bar) { */ @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 ReadOnlyFirstDto baz(String baz) { */ @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 ebf3c803735f..98262e290b61 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 ResponseObjectWithDifferentFieldNamesDto normalPropertyName(String normal */ @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 ResponseObjectWithDifferentFieldNamesDto UPPER_CASE_PROPERTY_SNAKE(String */ @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 ResponseObjectWithDifferentFieldNamesDto lowerCasePropertyDashes(String l */ @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 ResponseObjectWithDifferentFieldNamesDto propertyNameWithSpaces(String pr */ @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 67372847e3f3..d38fc76980b8 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 ReturnDto _return(Integer _return) { */ @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 83476b9ca56b..456f94209aa3 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 800685db5163..4650aa2c9d9a 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 TagDto id(Long id) { */ @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 TagDto name(String name) { */ @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 d6f764de1afc..74c97fd6d19b 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 UserDto id(Long id) { */ @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 UserDto username(String username) { */ @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 UserDto firstName(String firstName) { */ @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 UserDto lastName(String lastName) { */ @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 UserDto email(String email) { */ @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 UserDto password(String password) { */ @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 UserDto phone(String phone) { */ @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 UserDto userStatus(Integer userStatus) { */ @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 d67617003c07..15762073cb5a 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 XmlItemDto attributeString(String attributeString) { */ @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 XmlItemDto attributeNumber(BigDecimal attributeNumber) { */ @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 XmlItemDto attributeInteger(Integer attributeInteger) { */ @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 XmlItemDto attributeBoolean(Boolean attributeBoolean) { */ @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItemDto nameString(String nameString) { + public XmlItemDto nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -207,15 +207,15 @@ public XmlItemDto nameString(String nameString) { */ @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 XmlItemDto nameNumber(BigDecimal nameNumber) { */ @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 XmlItemDto nameInteger(Integer nameInteger) { */ @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 XmlItemDto nameBoolean(Boolean nameBoolean) { */ @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItemDto prefixString(String prefixString) { + public XmlItemDto prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -337,15 +337,15 @@ public XmlItemDto prefixString(String prefixString) { */ @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 XmlItemDto prefixNumber(BigDecimal prefixNumber) { */ @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 XmlItemDto prefixInteger(Integer prefixInteger) { */ @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 XmlItemDto prefixBoolean(Boolean prefixBoolean) { */ @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItemDto namespaceString(String namespaceString) { + public XmlItemDto namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -467,15 +467,15 @@ public XmlItemDto namespaceString(String namespaceString) { */ @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 XmlItemDto namespaceNumber(BigDecimal namespaceNumber) { */ @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 XmlItemDto namespaceInteger(Integer namespaceInteger) { */ @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 XmlItemDto namespaceBoolean(Boolean namespaceBoolean) { */ @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItemDto prefixNsString(String prefixNsString) { + public XmlItemDto prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -597,15 +597,15 @@ public XmlItemDto prefixNsString(String prefixNsString) { */ @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 XmlItemDto prefixNsNumber(BigDecimal prefixNsNumber) { */ @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 XmlItemDto prefixNsInteger(Integer prefixNsInteger) { */ @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 XmlItemDto prefixNsBoolean(Boolean prefixNsBoolean) { */ @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 282cf379a852..8e86d31e945b 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.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 1af46c9a554b..34d305d7b2fb 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 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 8b68440692f3..1d539f1e6c1b 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 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 58f3affacc83..91d1d36debb9 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.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 @@ ResponseEntity addPet( 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 4c1a224cf19e..b8b8eee70d66 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.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 f9f7d786e4a6..abba3207c23f 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.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 b2c04d0949d8..da305c22ca02 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 Category id(Long id) { @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 Category name(String name) { @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 119789df3d6b..0cf7d130582d 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 f648544c6b15..822435d2a0cf 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 b53c806b8e18..6e170f8679b3 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public Pet status(StatusEnum status) { @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 StatusEnum getStatus() { * @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 96a8a4339c05..556fec8368f7 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 Tag id(Long id) { @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 Tag name(String name) { @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 308cae933a24..650e0fff926d 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 2f9f5a93f61c..0cd217a6d198 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.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 @@ CompletableFuture> addPet( 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 38731b1e2370..8e86bb057c73 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.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 24b501796295..22982d4b0792 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.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 38f132ba4542..52ef92b93e2c 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 Category id(Long id) { @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 Category name(String name) { @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 fa47f8d98c32..62273b74b4c3 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 f5a068284e82..30931ba03e0c 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 d52989b56c20..ffefbca982c2 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public Pet status(StatusEnum status) { @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 StatusEnum getStatus() { * @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 69fd62f84e4b..4c6df0f0931f 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 Tag id(Long id) { @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 Tag name(String name) { @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 b6206a76796e..08a3518b7b45 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 22d81bc3af64..ed796e3594a5 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.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 4b7e5033f56e..3169e5ec44c5 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.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 38f132ba4542..52ef92b93e2c 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 Category id(Long id) { @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 Category name(String name) { @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 d52989b56c20..ffefbca982c2 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public Pet status(StatusEnum status) { @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 StatusEnum getStatus() { * @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 69fd62f84e4b..4c6df0f0931f 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 Tag id(Long id) { @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 Tag name(String name) { @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 8c051acdaab9..3c61726ecf91 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.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 facf4ffe3df3..46e11a03a614 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.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 @@ ResponseEntity createXmlItem( ) 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 @@ ResponseEntity fakeOuterBooleanSerialize( ) 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 @@ ResponseEntity fakeOuterCompositeSerialize( ) 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 @@ ResponseEntity fakeOuterNumberSerialize( ) 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 @@ ResponseEntity testEndpointParameters( ) 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 @@ 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_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 ba874f95a17a..cb3a52a1cd94 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.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 1b1105fc6c0a..5ac18e5a2aa3 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.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 @@ ResponseEntity addPet( 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 0149821657be..f909e26ddd0b 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.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 370d4dc84ee4..ab53b25fdb2c 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.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 830bbb7313d6..96f67600df92 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 AdditionalPropertiesAnyType name(String name) { @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 bf1595a96f98..c1667ca6104c 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 AdditionalPropertiesArray name(String name) { @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 52fffbdf38a5..76db03e378c7 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 AdditionalPropertiesBoolean name(String name) { @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 d4c05a241d5d..63327058ed2d 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -295,11 +295,11 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @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 void setAnytype2(JsonNullable anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -335,11 +335,11 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @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 72ab9cbaf328..71832b3934a8 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 AdditionalPropertiesInteger name(String name) { @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 5c61bb980aa8..54c84c7a299c 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 AdditionalPropertiesNumber name(String name) { @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 c5b9a7c551fb..5aad3f623d81 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 AdditionalPropertiesObject name(String name) { @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 69ba6448e256..15aa4bd856d5 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 AdditionalPropertiesString name(String name) { @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 13c0e99ca206..f47dd942964c 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 BigCat() { super(); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -85,11 +85,11 @@ public BigCat kind(KindEnum kind) { @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 5068cf5192b0..8061352c68f4 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 Capitalization smallCamel(String smallCamel) { @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 Capitalization capitalCamel(String capitalCamel) { @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 Capitalization smallSnake(String smallSnake) { @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 Capitalization capitalSnake(String capitalSnake) { @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @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 Capitalization ATT_NAME(String ATT_NAME) { @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 2df0b56c9467..7ae27b2fc08c 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 Cat() { super(); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -53,11 +53,11 @@ public Cat declawed(Boolean declawed) { @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 3344fc6130b2..4e7ac458f29d 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 Category() { super(); } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -42,11 +42,11 @@ public Category id(Long id) { @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 61fadeb20ae9..08d29fd9d1cc 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 ChildWithNullable otherProperty(String otherProperty) { @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 b488d65a4d9c..c8d79f06b3c1 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 ClassModel propertyClass(String propertyClass) { @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 2ac879d22477..93e6e6109612 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 Client client(String 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 69cf44899ae3..288fa126ec54 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 Dog() { super(); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -45,11 +45,11 @@ public Dog breed(String breed) { @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 18661a6b5278..3eb15047d97b 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 static ArrayEnumEnum fromValue(String value) { @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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { @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 3b6f8fe7348b..a393a8aa199e 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 EnumTest() { super(); } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -196,11 +196,11 @@ public EnumTest enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -236,15 +236,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { @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 EnumTest outerEnum(OuterEnum outerEnum) { @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 d1c656bf8699..eaeb1a5deeb1 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 File sourceURI(String sourceURI) { @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 d620fcb5c5b0..f2ab210d147f 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 FileSchemaTestClass file(File file) { @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 1d29139ed807..ef1ff2d7f1a4 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 FormatTest() { super(); } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -78,15 +78,15 @@ public FormatTest integer(Integer integer) { @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 FormatTest int32(Integer int32) { @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 FormatTest int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -164,15 +164,15 @@ public FormatTest _float(Float _float) { @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 FormatTest _double(Double _double) { @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 FormatTest string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -286,15 +286,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @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 FormatTest uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -346,11 +346,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { @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 81f356e71315..eba1d75a4cb9 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 HasOnlyReadOnly bar(String bar) { @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 HasOnlyReadOnly foo(String foo) { @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 e59884edcbf3..240b93433efc 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @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 adb553d71285..9b2e9c3fdd03 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 Model200Response name(Integer name) { @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 Model200Response propertyClass(String propertyClass) { @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 159c9942618d..53239483e971 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 a1eb773676b7..9ccf8e4b5bc4 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 ModelList _123list(String _123list) { @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 aad5cf1a29da..3ebc70736ad2 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 ModelReturn _return(Integer _return) { @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 463070359ab6..ff4889026f47 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { @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 Name property(String property) { @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 Name _123number(Integer _123number) { @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 c8af44357a84..4cee785c4fa5 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 NumberOnly justNumber(BigDecimal justNumber) { @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 f0cf689c356b..76c1be4fdbb9 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 badf9bcd0123..e8c016b7d3b2 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 OuterComposite myNumber(BigDecimal myNumber) { @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 OuterComposite myString(String myString) { @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 OuterComposite myBoolean(Boolean myBoolean) { @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 759ce2361a1f..26d56f6dc364 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 static TypeEnum fromValue(String value) { 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 ParentWithNullable type(TypeEnum type) { @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 fdbf59b39023..3f2b9045552c 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 Pet() { super(); } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -99,15 +99,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -218,7 +218,7 @@ public Pet status(StatusEnum status) { @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 StatusEnum getStatus() { * @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 fb39cd3b9b49..8b1e50c5bafa 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 ReadOnlyFirst bar(String bar) { @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 ReadOnlyFirst baz(String baz) { @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 fd046d7fe6b4..943e77a36768 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 ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPro @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 ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UP @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 ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowe @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 ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String prope @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 342d0437dec0..68bce8ca908d 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 f7dd6a14494d..e8b67439e58c 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 Tag id(Long id) { @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 Tag name(String name) { @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 98c76f55ce9f..a56fd2302474 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 8fb1a3ebcdf2..f4292bd33da6 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 XmlItem attributeString(String attributeString) { @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 XmlItem attributeNumber(BigDecimal attributeNumber) { @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 XmlItem attributeInteger(Integer attributeInteger) { @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 XmlItem attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -213,15 +213,15 @@ public XmlItem nameString(String nameString) { @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 XmlItem nameNumber(BigDecimal nameNumber) { @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 XmlItem nameInteger(Integer nameInteger) { @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 XmlItem nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -349,15 +349,15 @@ public XmlItem prefixString(String prefixString) { @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 XmlItem prefixNumber(BigDecimal prefixNumber) { @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 XmlItem prefixInteger(Integer prefixInteger) { @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 XmlItem prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -485,15 +485,15 @@ public XmlItem namespaceString(String namespaceString) { @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItem namespaceInteger(Integer namespaceInteger) { @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -621,15 +621,15 @@ public XmlItem prefixNsString(String prefixNsString) { @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @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 8ec23c6cd4a8..c5a9840b8fc4 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.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 @@ ResponseEntity addPet( 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 @@ ResponseEntity> findPetsByStatus( 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 316ab8fe0510..2ed02807755b 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.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 0a0cabb4f51f..c9e05bb8b569 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.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 6b951ff15d0c..3f4a1d0946c6 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 Category id(Long id) { @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 Category name(String name) { @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 fa47f8d98c32..62273b74b4c3 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 f5a068284e82..30931ba03e0c 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 a46aceac40a3..de62b8ecbd3d 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -104,15 +104,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -220,11 +220,11 @@ public Pet status(StatusEnum status) { @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 69fd62f84e4b..4c6df0f0931f 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 Tag id(Long id) { @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 Tag name(String name) { @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 b6206a76796e..08a3518b7b45 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 773209137238..bea6f9e95c72 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.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 @@ ResponseEntity addPet( 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 0e2e91b1ec73..b41c0f01cc94 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.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 d5f35d3df009..87c146bd44f1 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.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 38f132ba4542..52ef92b93e2c 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 Category id(Long id) { @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 Category name(String name) { @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 fa47f8d98c32..62273b74b4c3 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 f5a068284e82..30931ba03e0c 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 d52989b56c20..ffefbca982c2 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public Pet status(StatusEnum status) { @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 StatusEnum getStatus() { * @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 69fd62f84e4b..4c6df0f0931f 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 Tag id(Long id) { @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 Tag name(String name) { @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 b6206a76796e..08a3518b7b45 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 3474c08ffdb4..c858d127be55 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.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 @@ ResponseEntity addPet( 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 cf277bf0c9b0..da66c5e9acab 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.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 f46b5ebae017..171d3b022d42 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.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 38f132ba4542..52ef92b93e2c 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 Category id(Long id) { @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 Category name(String name) { @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 fa47f8d98c32..62273b74b4c3 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 f5a068284e82..30931ba03e0c 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 d52989b56c20..ffefbca982c2 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public Pet status(StatusEnum status) { @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 StatusEnum getStatus() { * @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 69fd62f84e4b..4c6df0f0931f 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 Tag id(Long id) { @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 Tag name(String name) { @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 b6206a76796e..08a3518b7b45 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 1cac5d20961a..ccd35c830b65 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.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 @@ default ResponseEntity addPet( 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 078f70d21998..dd3c38802468 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.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 665098153e78..ab7d5a3be9d2 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.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 38f132ba4542..52ef92b93e2c 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 Category id(Long id) { @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 Category name(String name) { @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 fa47f8d98c32..62273b74b4c3 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 f5a068284e82..30931ba03e0c 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 d52989b56c20..ffefbca982c2 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public Pet status(StatusEnum status) { @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 StatusEnum getStatus() { * @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 69fd62f84e4b..4c6df0f0931f 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 Tag id(Long id) { @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 Tag name(String name) { @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 b6206a76796e..08a3518b7b45 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 148f6e9f72b1..819a3385278f 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.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 72fe36e9ee9a..1db60d567c2f 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.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 @@ default Optional getRequest() { ) 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 cd48b81170dc..07588019f2ea 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 Addressable href(String href) { @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 Addressable id(String id) { @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 9d92962d04d7..0ff1563ed40b 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 void setId(String id) { this.id = id; } - public Bar barPropA(String barPropA) { + public Bar barPropA(@Nullable String barPropA) { this.barPropA = barPropA; return this; } @@ -80,15 +80,15 @@ public Bar barPropA(String barPropA) { @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 Bar fooPropB(String fooPropB) { @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 Bar foo(FooRefOrValue foo) { @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 271087b50191..6d063b2e0993 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 BarCreate(String atType) { super(atType); } - public BarCreate barPropA(String barPropA) { + public BarCreate barPropA(@Nullable String barPropA) { this.barPropA = barPropA; return this; } @@ -59,15 +59,15 @@ public BarCreate barPropA(String barPropA) { @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 BarCreate fooPropB(String fooPropB) { @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 BarCreate foo(FooRefOrValue foo) { @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 2d97016c055b..82f2ca67d022 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 Entity(String atType) { this.atType = atType; } - public Entity href(String href) { + public Entity href(@Nullable String href) { this.href = href; return this; } @@ -72,15 +72,15 @@ public Entity href(String href) { @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 Entity id(String id) { @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 Entity atSchemaLocation(String atSchemaLocation) { @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 Entity atBaseType(String atBaseType) { @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 ec239a602eb7..a96b15ec08b0 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 EntityRef(String atType) { this.atType = atType; } - public EntityRef name(String name) { + public EntityRef name(@Nullable String name) { this.name = name; return this; } @@ -73,15 +73,15 @@ public EntityRef name(String name) { @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 EntityRef atReferredType(String atReferredType) { @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 EntityRef href(String href) { @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 EntityRef id(String id) { @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 EntityRef atSchemaLocation(String atSchemaLocation) { @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 EntityRef atBaseType(String atBaseType) { @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 e28481a43d24..675f92b97f84 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 Extensible(String atType) { this.atType = atType; } - public Extensible atSchemaLocation(String atSchemaLocation) { + public Extensible atSchemaLocation(@Nullable String atSchemaLocation) { this.atSchemaLocation = atSchemaLocation; return this; } @@ -51,15 +51,15 @@ public Extensible atSchemaLocation(String atSchemaLocation) { @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 Extensible atBaseType(String atBaseType) { @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 37e37d321568..c6af60886867 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 Foo(String atType) { super(atType); } - public Foo fooPropA(String fooPropA) { + public Foo fooPropA(@Nullable String fooPropA) { this.fooPropA = fooPropA; return this; } @@ -54,15 +54,15 @@ public Foo fooPropA(String fooPropA) { @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 Foo fooPropB(String fooPropB) { @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 b437faf3ce5b..e3cd06e73178 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 FooRef(String atType) { super(atType); } - public FooRef foorefPropA(String foorefPropA) { + public FooRef foorefPropA(@Nullable String foorefPropA) { this.foorefPropA = foorefPropA; return this; } @@ -52,11 +52,11 @@ public FooRef foorefPropA(String foorefPropA) { @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 5df3344b463c..ec61b2cab8c6 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 Pasta(String atType) { super(atType); } - public Pasta vendor(String vendor) { + public Pasta vendor(@Nullable String vendor) { this.vendor = vendor; return this; } @@ -52,11 +52,11 @@ public Pasta vendor(String vendor) { @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 ae8c7ff7c501..10dcbb50efde 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 Pizza(String atType) { super(atType); } - public Pizza pizzaSize(BigDecimal pizzaSize) { + public Pizza pizzaSize(@Nullable BigDecimal pizzaSize) { this.pizzaSize = pizzaSize; return this; } @@ -61,11 +61,11 @@ public Pizza pizzaSize(BigDecimal pizzaSize) { @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 4b6874f50560..8d1bceeb30dd 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 PizzaSpeziale(String atType) { super(atType); } - public PizzaSpeziale toppings(String toppings) { + public PizzaSpeziale toppings(@Nullable String toppings) { this.toppings = toppings; return this; } @@ -53,11 +53,11 @@ public PizzaSpeziale toppings(String toppings) { @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 c3ccf8c0a18d..6a78164f7cc3 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.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 @@ default ResponseEntity addPet( 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 501c1fc923bb..e674b3c7748e 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.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 fd15a8b2557b..b9eb373eabcc 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.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 38f132ba4542..52ef92b93e2c 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 Category id(Long id) { @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 Category name(String name) { @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 fa47f8d98c32..62273b74b4c3 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 f5a068284e82..30931ba03e0c 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 d52989b56c20..ffefbca982c2 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public Pet status(StatusEnum status) { @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 StatusEnum getStatus() { * @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 69fd62f84e4b..4c6df0f0931f 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 Tag id(Long id) { @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 Tag name(String name) { @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 b6206a76796e..08a3518b7b45 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 aa5db0bd4ffa..8c9fe11ab7a6 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.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 @@ default ResponseEntity addPet( 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 7ce733c17b37..11fcda03f0e3 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.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 550503a4730b..4f0f4eb1fc16 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.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 3e362e45689d..b5cd779e48e0 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 Category(@Nullable Long id, @Nullable String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -60,15 +60,15 @@ public Category id(Long id) { @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 Category name(String name) { @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 de3a986808f8..06c2973301df 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 ModelApiResponse(@Nullable Integer code, @Nullable String type, @Nullable this.message = message; } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -65,15 +65,15 @@ public ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 1e974769a96f..745b51a44115 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 Order(@Nullable Long id, @Nullable Long petId, @Nullable Integer quantity this.complete = complete; } - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -113,15 +113,15 @@ public Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 f2946a4dec3d..68daabddd06b 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 Pet(@Nullable Long id, @Nullable Category category, String name, List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -258,7 +258,7 @@ public Pet status(StatusEnum status) { @JacksonXmlProperty(localName = "status") @XmlElement(name = "status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -266,7 +266,7 @@ public StatusEnum getStatus() { * @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 8ce4177e2556..cca10eb0c201 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 Tag(@Nullable Long id, @Nullable String name) { this.name = name; } - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -60,15 +60,15 @@ public Tag id(Long id) { @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 Tag name(String name) { @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 585f4fab0eea..6985b7a4d828 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 User(@Nullable Long id, @Nullable String username, @Nullable String first this.userStatus = userStatus; } - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -78,15 +78,15 @@ public User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 224e6aa6756b..c3292eca4978 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.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 b082ac0b8d4b..32ce81eef4dc 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.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 abd72146363e..9a7b5f5aafd3 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.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 @@ default ResponseEntity createXmlItem( ) 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 @@ default ResponseEntity fakeOuterBooleanSerialize( ) 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 @@ default ResponseEntity fakeOuterCompositeSerialize( ) 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 @@ default ResponseEntity fakeOuterNumberSerialize( ) 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 @@ default ResponseEntity testEndpointParameters( ) 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 @@ 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_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 5b89daf88cac..32ead027eec3 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.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 7659bf16c75a..df3d698be9a6 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.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 22dd9512aac2..5a1b775fcaf9 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.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 846d8ebe21b3..7c2ab1c8e4c8 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.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 @@ default ResponseEntity addPet( 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 451bf4bad636..71080a04d776 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 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 b257451690c1..fd691863941e 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.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 014f9eec9ab4..002899085294 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.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 964d601d42d8..1dbb555c7ffe 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.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 8a8222c1332b..56c0b57370be 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.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 830bbb7313d6..96f67600df92 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 AdditionalPropertiesAnyType name(String name) { @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 bf1595a96f98..c1667ca6104c 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 AdditionalPropertiesArray name(String name) { @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 52fffbdf38a5..76db03e378c7 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 AdditionalPropertiesBoolean name(String name) { @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 d4c05a241d5d..63327058ed2d 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -295,11 +295,11 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @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 void setAnytype2(JsonNullable anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -335,11 +335,11 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @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 72ab9cbaf328..71832b3934a8 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 AdditionalPropertiesInteger name(String name) { @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 5c61bb980aa8..54c84c7a299c 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 AdditionalPropertiesNumber name(String name) { @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 c5b9a7c551fb..5aad3f623d81 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 AdditionalPropertiesObject name(String name) { @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 69ba6448e256..15aa4bd856d5 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 AdditionalPropertiesString name(String name) { @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 1917ef14601c..91ab33a1af76 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 BigCat(String className) { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -92,11 +92,11 @@ public BigCat kind(KindEnum kind) { @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 5068cf5192b0..8061352c68f4 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 Capitalization smallCamel(String smallCamel) { @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 Capitalization capitalCamel(String capitalCamel) { @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 Capitalization smallSnake(String smallSnake) { @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 Capitalization capitalSnake(String capitalSnake) { @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @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 Capitalization ATT_NAME(String ATT_NAME) { @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 ff52a5fb6322..ae1ff30ca9a3 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 Cat(String className) { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -60,11 +60,11 @@ public Cat declawed(Boolean declawed) { @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 370ea62adc9a..418607237352 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 Category(String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -49,11 +49,11 @@ public Category id(Long id) { @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 61fadeb20ae9..08d29fd9d1cc 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 ChildWithNullable otherProperty(String otherProperty) { @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 b488d65a4d9c..c8d79f06b3c1 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 ClassModel propertyClass(String propertyClass) { @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 2ac879d22477..93e6e6109612 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 Client client(String 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 483252825a52..105f4e5cfd6d 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 Dog(String className) { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -52,11 +52,11 @@ public Dog breed(String breed) { @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 18661a6b5278..3eb15047d97b 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 static ArrayEnumEnum fromValue(String value) { @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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { @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 9b1b15ea4410..15185c08d97d 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 EnumTest(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -203,11 +203,11 @@ public EnumTest enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -243,15 +243,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { @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 EnumTest outerEnum(OuterEnum outerEnum) { @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 d1c656bf8699..eaeb1a5deeb1 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 File sourceURI(String sourceURI) { @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 d620fcb5c5b0..f2ab210d147f 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 FileSchemaTestClass file(File file) { @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 efe9b15cbe3b..1634cef97894 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 FormatTest(BigDecimal number, byte[] _byte, LocalDate date, String passwo this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -88,15 +88,15 @@ public FormatTest integer(Integer integer) { @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 FormatTest int32(Integer int32) { @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 FormatTest int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -174,15 +174,15 @@ public FormatTest _float(Float _float) { @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 FormatTest _double(Double _double) { @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 FormatTest string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -296,15 +296,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @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 FormatTest uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -356,11 +356,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { @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 81f356e71315..eba1d75a4cb9 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 HasOnlyReadOnly bar(String bar) { @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 HasOnlyReadOnly foo(String foo) { @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 e59884edcbf3..240b93433efc 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @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 adb553d71285..9b2e9c3fdd03 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 Model200Response name(Integer name) { @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 Model200Response propertyClass(String propertyClass) { @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 159c9942618d..53239483e971 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 a1eb773676b7..9ccf8e4b5bc4 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 ModelList _123list(String _123list) { @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 aad5cf1a29da..3ebc70736ad2 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 ModelReturn _return(Integer _return) { @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 060f4e82501e..ec2d7c5927e1 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { @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 Name property(String property) { @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 Name _123number(Integer _123number) { @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 c8af44357a84..4cee785c4fa5 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 NumberOnly justNumber(BigDecimal justNumber) { @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 f0cf689c356b..76c1be4fdbb9 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 badf9bcd0123..e8c016b7d3b2 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 OuterComposite myNumber(BigDecimal myNumber) { @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 OuterComposite myString(String myString) { @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 OuterComposite myBoolean(Boolean myBoolean) { @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 759ce2361a1f..26d56f6dc364 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 static TypeEnum fromValue(String value) { 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 ParentWithNullable type(TypeEnum type) { @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 564926c9b34c..4774dbbdaca3 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 Pet(String name, Set photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -107,15 +107,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -226,7 +226,7 @@ public Pet status(StatusEnum status) { @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 StatusEnum getStatus() { * @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 fb39cd3b9b49..8b1e50c5bafa 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 ReadOnlyFirst bar(String bar) { @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 ReadOnlyFirst baz(String baz) { @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 fd046d7fe6b4..943e77a36768 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 ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPro @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 ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UP @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 ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowe @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 ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String prope @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 342d0437dec0..68bce8ca908d 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 f7dd6a14494d..e8b67439e58c 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 Tag id(Long id) { @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 Tag name(String name) { @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 98c76f55ce9f..a56fd2302474 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 8fb1a3ebcdf2..f4292bd33da6 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 XmlItem attributeString(String attributeString) { @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 XmlItem attributeNumber(BigDecimal attributeNumber) { @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 XmlItem attributeInteger(Integer attributeInteger) { @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 XmlItem attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -213,15 +213,15 @@ public XmlItem nameString(String nameString) { @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 XmlItem nameNumber(BigDecimal nameNumber) { @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 XmlItem nameInteger(Integer nameInteger) { @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 XmlItem nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -349,15 +349,15 @@ public XmlItem prefixString(String prefixString) { @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 XmlItem prefixNumber(BigDecimal prefixNumber) { @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 XmlItem prefixInteger(Integer prefixInteger) { @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 XmlItem prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -485,15 +485,15 @@ public XmlItem namespaceString(String namespaceString) { @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItem namespaceInteger(Integer namespaceInteger) { @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -621,15 +621,15 @@ public XmlItem prefixNsString(String prefixNsString) { @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @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 ed357fa298af..1db778d1de9e 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.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 d3c11e319d5a..c1208b139926 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.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 @@ default ResponseEntity createXmlItem( ) 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 @@ default ResponseEntity fakeOuterBooleanSerialize( ) 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 @@ default ResponseEntity fakeOuterCompositeSerialize( ) 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 @@ default ResponseEntity fakeOuterNumberSerialize( ) 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 @@ default ResponseEntity testEndpointParameters( ) 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 @@ default ResponseEntity testEnumParameters( 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 a4777d27a52f..d8129dec10c7 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.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 cacd5f0ea1f4..5b3f7fdb3c4e 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.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 fe8fbe4250d2..2ecd4a20b893 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.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 8ade78f6c0ae..6015875683f2 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.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 830bbb7313d6..96f67600df92 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 AdditionalPropertiesAnyType name(String name) { @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 bf1595a96f98..c1667ca6104c 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 AdditionalPropertiesArray name(String name) { @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 52fffbdf38a5..76db03e378c7 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 AdditionalPropertiesBoolean name(String name) { @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 d4c05a241d5d..63327058ed2d 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -295,11 +295,11 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @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 void setAnytype2(JsonNullable anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -335,11 +335,11 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @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 72ab9cbaf328..71832b3934a8 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 AdditionalPropertiesInteger name(String name) { @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 5c61bb980aa8..54c84c7a299c 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 AdditionalPropertiesNumber name(String name) { @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 c5b9a7c551fb..5aad3f623d81 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 AdditionalPropertiesObject name(String name) { @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 69ba6448e256..15aa4bd856d5 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 AdditionalPropertiesString name(String name) { @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 1917ef14601c..91ab33a1af76 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 BigCat(String className) { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -92,11 +92,11 @@ public BigCat kind(KindEnum kind) { @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 5068cf5192b0..8061352c68f4 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 Capitalization smallCamel(String smallCamel) { @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 Capitalization capitalCamel(String capitalCamel) { @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 Capitalization smallSnake(String smallSnake) { @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 Capitalization capitalSnake(String capitalSnake) { @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @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 Capitalization ATT_NAME(String ATT_NAME) { @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 ff52a5fb6322..ae1ff30ca9a3 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 Cat(String className) { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -60,11 +60,11 @@ public Cat declawed(Boolean declawed) { @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 370ea62adc9a..418607237352 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 Category(String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -49,11 +49,11 @@ public Category id(Long id) { @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 61fadeb20ae9..08d29fd9d1cc 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 ChildWithNullable otherProperty(String otherProperty) { @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 b488d65a4d9c..c8d79f06b3c1 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 ClassModel propertyClass(String propertyClass) { @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 2ac879d22477..93e6e6109612 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 Client client(String 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 483252825a52..105f4e5cfd6d 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 Dog(String className) { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -52,11 +52,11 @@ public Dog breed(String breed) { @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 18661a6b5278..3eb15047d97b 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 static ArrayEnumEnum fromValue(String value) { @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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { @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 9b1b15ea4410..15185c08d97d 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 EnumTest(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -203,11 +203,11 @@ public EnumTest enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -243,15 +243,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { @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 EnumTest outerEnum(OuterEnum outerEnum) { @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 d1c656bf8699..eaeb1a5deeb1 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 File sourceURI(String sourceURI) { @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 d620fcb5c5b0..f2ab210d147f 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 FileSchemaTestClass file(File file) { @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 efe9b15cbe3b..1634cef97894 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 FormatTest(BigDecimal number, byte[] _byte, LocalDate date, String passwo this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -88,15 +88,15 @@ public FormatTest integer(Integer integer) { @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 FormatTest int32(Integer int32) { @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 FormatTest int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -174,15 +174,15 @@ public FormatTest _float(Float _float) { @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 FormatTest _double(Double _double) { @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 FormatTest string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -296,15 +296,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @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 FormatTest uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -356,11 +356,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { @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 81f356e71315..eba1d75a4cb9 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 HasOnlyReadOnly bar(String bar) { @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 HasOnlyReadOnly foo(String foo) { @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 e59884edcbf3..240b93433efc 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @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 adb553d71285..9b2e9c3fdd03 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 Model200Response name(Integer name) { @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 Model200Response propertyClass(String propertyClass) { @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 159c9942618d..53239483e971 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 a1eb773676b7..9ccf8e4b5bc4 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 ModelList _123list(String _123list) { @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 aad5cf1a29da..3ebc70736ad2 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 ModelReturn _return(Integer _return) { @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 060f4e82501e..ec2d7c5927e1 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { @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 Name property(String property) { @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 Name _123number(Integer _123number) { @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 c8af44357a84..4cee785c4fa5 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 NumberOnly justNumber(BigDecimal justNumber) { @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 f0cf689c356b..76c1be4fdbb9 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 badf9bcd0123..e8c016b7d3b2 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 OuterComposite myNumber(BigDecimal myNumber) { @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 OuterComposite myString(String myString) { @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 OuterComposite myBoolean(Boolean myBoolean) { @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 759ce2361a1f..26d56f6dc364 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 static TypeEnum fromValue(String value) { 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 ParentWithNullable type(TypeEnum type) { @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 564926c9b34c..4774dbbdaca3 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 Pet(String name, Set photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -107,15 +107,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -226,7 +226,7 @@ public Pet status(StatusEnum status) { @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 StatusEnum getStatus() { * @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 fb39cd3b9b49..8b1e50c5bafa 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 ReadOnlyFirst bar(String bar) { @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 ReadOnlyFirst baz(String baz) { @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 fd046d7fe6b4..943e77a36768 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 ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPro @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 ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UP @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 ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowe @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 ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String prope @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 342d0437dec0..68bce8ca908d 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 f7dd6a14494d..e8b67439e58c 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 Tag id(Long id) { @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 Tag name(String name) { @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 98c76f55ce9f..a56fd2302474 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 8fb1a3ebcdf2..f4292bd33da6 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 XmlItem attributeString(String attributeString) { @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 XmlItem attributeNumber(BigDecimal attributeNumber) { @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 XmlItem attributeInteger(Integer attributeInteger) { @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 XmlItem attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -213,15 +213,15 @@ public XmlItem nameString(String nameString) { @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 XmlItem nameNumber(BigDecimal nameNumber) { @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 XmlItem nameInteger(Integer nameInteger) { @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 XmlItem nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -349,15 +349,15 @@ public XmlItem prefixString(String prefixString) { @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 XmlItem prefixNumber(BigDecimal prefixNumber) { @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 XmlItem prefixInteger(Integer prefixInteger) { @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 XmlItem prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -485,15 +485,15 @@ public XmlItem namespaceString(String namespaceString) { @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItem namespaceInteger(Integer namespaceInteger) { @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -621,15 +621,15 @@ public XmlItem prefixNsString(String prefixNsString) { @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @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 fa43d4401037..8f58348e218b 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.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 @@ default ResponseEntity addPet( 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 19a6cf00577b..c8327740559b 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 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 b59d70a1b4c8..5116c15ddd6a 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 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 06fdba953a9a..137d5464b90a 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 Category id(Long id) { */ @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 Category name(String name) { */ @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 9064a1200418..1b1944c9e221 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 ModelApiResponse code(Integer code) { */ @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 ModelApiResponse type(String type) { */ @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 ModelApiResponse message(String message) { */ @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 a64cf7a6775d..61d646a50686 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { */ @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 Order petId(Long petId) { */ @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 Order quantity(Integer quantity) { */ @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 Order shipDate(OffsetDateTime shipDate) { */ @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 Order status(StatusEnum 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/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 10c50147f5ac..bf723669c8c3 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -102,15 +102,15 @@ public Pet id(Long id) { */ @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 Pet category(Category category) { */ @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -215,7 +215,7 @@ public Pet status(StatusEnum status) { @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -223,7 +223,7 @@ public StatusEnum getStatus() { * @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 b9e152d5d6c5..3ad3c6cf4dfc 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 Tag id(Long id) { */ @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 Tag name(String name) { */ @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 e56d600571ba..8bf9643a895f 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 User id(Long id) { */ @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 User username(String username) { */ @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 User firstName(String firstName) { */ @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 User lastName(String lastName) { */ @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 User email(String email) { */ @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 User password(String password) { */ @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 User phone(String phone) { */ @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 User userStatus(Integer userStatus) { */ @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 f373465dcb03..9e71f7e4e0e2 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.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 @@ default ResponseEntity addPet( 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 4b0f5e0b6dea..882ece00aa3b 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.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 60153b0486ef..52eb135af1b7 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.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 38f132ba4542..52ef92b93e2c 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 Category id(Long id) { @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 Category name(String name) { @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 fa47f8d98c32..62273b74b4c3 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 f5a068284e82..30931ba03e0c 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 d52989b56c20..ffefbca982c2 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public Pet status(StatusEnum status) { @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 StatusEnum getStatus() { * @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 69fd62f84e4b..4c6df0f0931f 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 Tag id(Long id) { @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 Tag name(String name) { @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 b6206a76796e..08a3518b7b45 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 dd388c8cd1d9..5b330a34ab36 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.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 ff9f597d90b9..d7728ec7210f 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.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 @@ ResponseEntity createXmlItem( ) 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 @@ ResponseEntity fakeOuterBooleanSerialize( ) 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 @@ ResponseEntity fakeOuterCompositeSerialize( ) 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 @@ ResponseEntity fakeOuterNumberSerialize( ) 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 @@ ResponseEntity testEndpointParameters( ) 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 @@ 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_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 f2448e1c1785..b574cda20184 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.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 bd875b23d249..680fc659b4d7 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.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 @@ ResponseEntity addPet( 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 a7ee0395385b..3ada957f9614 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.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 c84ca10f5058..45707aebd141 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.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 830bbb7313d6..96f67600df92 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 AdditionalPropertiesAnyType name(String name) { @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 bf1595a96f98..c1667ca6104c 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 AdditionalPropertiesArray name(String name) { @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 52fffbdf38a5..76db03e378c7 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 AdditionalPropertiesBoolean name(String name) { @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 d4c05a241d5d..63327058ed2d 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -295,11 +295,11 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @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 void setAnytype2(JsonNullable anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -335,11 +335,11 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @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 72ab9cbaf328..71832b3934a8 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 AdditionalPropertiesInteger name(String name) { @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 5c61bb980aa8..54c84c7a299c 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 AdditionalPropertiesNumber name(String name) { @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 c5b9a7c551fb..5aad3f623d81 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 AdditionalPropertiesObject name(String name) { @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 69ba6448e256..15aa4bd856d5 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 AdditionalPropertiesString name(String name) { @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 1917ef14601c..91ab33a1af76 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 BigCat(String className) { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -92,11 +92,11 @@ public BigCat kind(KindEnum kind) { @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 5068cf5192b0..8061352c68f4 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 Capitalization smallCamel(String smallCamel) { @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 Capitalization capitalCamel(String capitalCamel) { @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 Capitalization smallSnake(String smallSnake) { @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 Capitalization capitalSnake(String capitalSnake) { @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @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 Capitalization ATT_NAME(String ATT_NAME) { @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 ff52a5fb6322..ae1ff30ca9a3 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 Cat(String className) { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -60,11 +60,11 @@ public Cat declawed(Boolean declawed) { @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 370ea62adc9a..418607237352 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 Category(String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -49,11 +49,11 @@ public Category id(Long id) { @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 61fadeb20ae9..08d29fd9d1cc 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 ChildWithNullable otherProperty(String otherProperty) { @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 b488d65a4d9c..c8d79f06b3c1 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 ClassModel propertyClass(String propertyClass) { @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 2ac879d22477..93e6e6109612 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 Client client(String 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 483252825a52..105f4e5cfd6d 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 Dog(String className) { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -52,11 +52,11 @@ public Dog breed(String breed) { @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 18661a6b5278..3eb15047d97b 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 static ArrayEnumEnum fromValue(String value) { @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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { @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 9b1b15ea4410..15185c08d97d 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 EnumTest(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -203,11 +203,11 @@ public EnumTest enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -243,15 +243,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { @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 EnumTest outerEnum(OuterEnum outerEnum) { @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 d1c656bf8699..eaeb1a5deeb1 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 File sourceURI(String sourceURI) { @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 d620fcb5c5b0..f2ab210d147f 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 FileSchemaTestClass file(File file) { @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 efe9b15cbe3b..1634cef97894 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 FormatTest(BigDecimal number, byte[] _byte, LocalDate date, String passwo this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -88,15 +88,15 @@ public FormatTest integer(Integer integer) { @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 FormatTest int32(Integer int32) { @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 FormatTest int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -174,15 +174,15 @@ public FormatTest _float(Float _float) { @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 FormatTest _double(Double _double) { @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 FormatTest string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -296,15 +296,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @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 FormatTest uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -356,11 +356,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { @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 81f356e71315..eba1d75a4cb9 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 HasOnlyReadOnly bar(String bar) { @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 HasOnlyReadOnly foo(String foo) { @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 e59884edcbf3..240b93433efc 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @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 adb553d71285..9b2e9c3fdd03 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 Model200Response name(Integer name) { @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 Model200Response propertyClass(String propertyClass) { @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 159c9942618d..53239483e971 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 a1eb773676b7..9ccf8e4b5bc4 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 ModelList _123list(String _123list) { @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 aad5cf1a29da..3ebc70736ad2 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 ModelReturn _return(Integer _return) { @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 060f4e82501e..ec2d7c5927e1 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { @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 Name property(String property) { @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 Name _123number(Integer _123number) { @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 c8af44357a84..4cee785c4fa5 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 NumberOnly justNumber(BigDecimal justNumber) { @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 f0cf689c356b..76c1be4fdbb9 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 badf9bcd0123..e8c016b7d3b2 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 OuterComposite myNumber(BigDecimal myNumber) { @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 OuterComposite myString(String myString) { @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 OuterComposite myBoolean(Boolean myBoolean) { @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 759ce2361a1f..26d56f6dc364 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 static TypeEnum fromValue(String value) { 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 ParentWithNullable type(TypeEnum type) { @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 564926c9b34c..4774dbbdaca3 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 Pet(String name, Set photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -107,15 +107,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -226,7 +226,7 @@ public Pet status(StatusEnum status) { @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 StatusEnum getStatus() { * @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 fb39cd3b9b49..8b1e50c5bafa 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 ReadOnlyFirst bar(String bar) { @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 ReadOnlyFirst baz(String baz) { @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 fd046d7fe6b4..943e77a36768 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 ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPro @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 ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UP @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 ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowe @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 ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String prope @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 342d0437dec0..68bce8ca908d 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 f7dd6a14494d..e8b67439e58c 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 Tag id(Long id) { @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 Tag name(String name) { @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 98c76f55ce9f..a56fd2302474 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 8fb1a3ebcdf2..f4292bd33da6 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 XmlItem attributeString(String attributeString) { @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 XmlItem attributeNumber(BigDecimal attributeNumber) { @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 XmlItem attributeInteger(Integer attributeInteger) { @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 XmlItem attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -213,15 +213,15 @@ public XmlItem nameString(String nameString) { @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 XmlItem nameNumber(BigDecimal nameNumber) { @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 XmlItem nameInteger(Integer nameInteger) { @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 XmlItem nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -349,15 +349,15 @@ public XmlItem prefixString(String prefixString) { @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 XmlItem prefixNumber(BigDecimal prefixNumber) { @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 XmlItem prefixInteger(Integer prefixInteger) { @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 XmlItem prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -485,15 +485,15 @@ public XmlItem namespaceString(String namespaceString) { @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItem namespaceInteger(Integer namespaceInteger) { @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -621,15 +621,15 @@ public XmlItem prefixNsString(String prefixNsString) { @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @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 d335d3010600..189c39471661 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.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 @@ default Optional getRequest() { ) 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 f2b51222c688..18027338e265 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 void setNotNullList(List notNullList) { this.notNullList = notNullList; } - public ObjectWithUniqueItems notNullDateField(OffsetDateTime notNullDateField) { + public ObjectWithUniqueItems notNullDateField(@Nullable OffsetDateTime notNullDateField) { this.notNullDateField = notNullDateField; return this; } @@ -175,15 +175,15 @@ public ObjectWithUniqueItems notNullDateField(OffsetDateTime notNullDateField) { @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 ObjectWithUniqueItems nullDateField(OffsetDateTime nullDateField) { @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 8d9ab9d77670..e0e8378eaaa6 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.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 @@ default DogsApiDelegate getDelegate() { ) 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 5fba7a169e40..c459bcaccbf1 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.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 7a9f09756675..2bc48e0b319f 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 Dog name(String name) { @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 Dog age(Integer age) { @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 d5e16aa1eabe..89ce61224508 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 Error code(Integer code) { @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 Error message(String message) { @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 11b277874820..19216bce9fa4 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 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 d247f03fcb0a..ebc485579cab 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 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 @@ default ResponseEntity createXmlItem( ) 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 @@ default ResponseEntity fakeOuterBooleanSerialize( ) 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 @@ default ResponseEntity fakeOuterCompositeSerialize( ) 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 @@ default ResponseEntity fakeOuterNumberSerialize( ) 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 @@ default ResponseEntity testEndpointParameters( ) 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 @@ 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 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 888f4b118ab0..ce0c01322a3a 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 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 fe92a8d3cf27..65307e0d7ba2 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 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 @@ default ResponseEntity addPet( 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 da1b1ec7186c..4e10b2ec59d7 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 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 0448069b51bd..d5689ca159c8 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 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 a1d98f3c4bb5..e0c5987d5816 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 AdditionalPropertiesAnyType name(String name) { @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 91e80535bdc2..bc5038736040 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 AdditionalPropertiesArray name(String name) { @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 799ab80c457b..53748d1a5000 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 AdditionalPropertiesBoolean name(String name) { @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 11a89108aa16..2dbaf6fa904a 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -292,15 +292,15 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @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 AdditionalPropertiesClass anytype2(Object anytype2) { @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 AdditionalPropertiesClass anytype3(Object anytype3) { @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 e10e1ed8cff3..643bd785a36a 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 AdditionalPropertiesInteger name(String name) { @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 ec7de98b072c..779bfd4932ce 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 AdditionalPropertiesNumber name(String name) { @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 f1ca5c4723ec..2a5ae88ce258 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 AdditionalPropertiesObject name(String name) { @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 878e1c0d2f8e..67e11f844508 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 AdditionalPropertiesString name(String name) { @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 e6f273767d76..2f9ae2b94a60 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 BigCat(String className) { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -92,11 +92,11 @@ public BigCat kind(KindEnum kind) { @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 c31ebe71f8aa..b59ba0407495 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 Capitalization smallCamel(String smallCamel) { @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 Capitalization capitalCamel(String capitalCamel) { @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 Capitalization smallSnake(String smallSnake) { @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 Capitalization capitalSnake(String capitalSnake) { @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @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 Capitalization ATT_NAME(String ATT_NAME) { @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 390ea2ab1675..6943d96c7c40 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 Cat(String className) { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -60,11 +60,11 @@ public Cat declawed(Boolean declawed) { @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 b357c79691ec..e2d5db9cfe13 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 Category(String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -49,11 +49,11 @@ public Category id(Long id) { @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 b3dd0d06d4c0..a2b76c202faa 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 ChildWithNullable otherProperty(String otherProperty) { @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 7f46768aad97..031214ec81ed 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 ClassModel propertyClass(String propertyClass) { @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 e3e021842485..0813024920d1 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 Client client(String 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 a9ffb5c72133..7e5175ce4ece 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 ContainerDefaultValue(List nullableRequiredArray, List re this.requiredArray = requiredArray; } - public ContainerDefaultValue nullableArray(List nullableArray) { + public ContainerDefaultValue nullableArray(@Nullable List nullableArray) { this.nullableArray = nullableArray; return this; } @@ -69,11 +69,11 @@ public ContainerDefaultValue addNullableArrayItem(String nullableArrayItem) { @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 void setRequiredArray(List requiredArray) { this.requiredArray = requiredArray; } - public ContainerDefaultValue nullableArrayWithDefault(List nullableArrayWithDefault) { + public ContainerDefaultValue nullableArrayWithDefault(@Nullable List nullableArrayWithDefault) { this.nullableArrayWithDefault = nullableArrayWithDefault; return this; } @@ -153,11 +153,11 @@ public ContainerDefaultValue addNullableArrayWithDefaultItem(String nullableArra @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 4c66d12a2e87..bf8f6dce961e 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 Dog(String className) { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -52,11 +52,11 @@ public Dog breed(String breed) { @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 4a92f34ec784..84bf0f22ff55 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 static ArrayEnumEnum fromValue(String value) { @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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { @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 2d7b1c57a96d..b882444cda08 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 EnumTest(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -203,11 +203,11 @@ public EnumTest enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -243,15 +243,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { @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 EnumTest outerEnum(OuterEnum outerEnum) { @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 546a234e4be0..43f555503c8a 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 File sourceURI(String sourceURI) { @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 994175f4e77f..0377a96c21e4 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 FileSchemaTestClass file(File file) { @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 293848afc613..937db95c35ae 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 FormatTest(BigDecimal number, byte[] _byte, LocalDate date, String passwo this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -88,15 +88,15 @@ public FormatTest integer(Integer integer) { @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 FormatTest int32(Integer int32) { @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 FormatTest int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -174,15 +174,15 @@ public FormatTest _float(Float _float) { @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 FormatTest _double(Double _double) { @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 FormatTest string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -296,15 +296,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @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 FormatTest uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -356,11 +356,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { @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 c2346c7186c2..8482134b30d0 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 HasOnlyReadOnly bar(String bar) { @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 HasOnlyReadOnly foo(String foo) { @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 ed07098c2748..d9c90e1840ba 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @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 65fd35e6ceab..1fbb59bd7d93 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 Model200Response name(Integer name) { @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 Model200Response propertyClass(String propertyClass) { @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 5547ffe8c069..23ed26566ea5 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 78eb6b9ab0ce..1cd6a41ed818 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 ModelList _123list(String _123list) { @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 136b0a91ddab..d05635721dad 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 ModelReturn _return(Integer _return) { @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 3a77d5f5a5b9..a22989ecb0fd 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { @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 Name property(String property) { @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 Name _123number(Integer _123number) { @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 077b339b3437..e9f0d1a7dc6b 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 NullableMapProperty putLanguageValuesItem(String key, String languageValu @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 11bf3b077b49..4d4a111a5064 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 NumberOnly justNumber(BigDecimal justNumber) { @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 844c0cd26661..e5105062cb63 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 f2276a649acc..2f1c77b9b454 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 OuterComposite myNumber(BigDecimal myNumber) { @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 OuterComposite myString(String myString) { @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 OuterComposite myBoolean(Boolean myBoolean) { @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 0c063dd5c414..0e0a43cf865a 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 static TypeEnum fromValue(String value) { 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 ParentWithNullable type(TypeEnum type) { @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 ParentWithNullable nullableProperty(String nullableProperty) { @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 dd26f80c6e09..a833d7f2af7b 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 Pet(String name, Set photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -107,15 +107,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -226,7 +226,7 @@ public Pet status(StatusEnum status) { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -234,7 +234,7 @@ public StatusEnum getStatus() { * @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 35a250fbe6f2..16f6f505853c 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 ReadOnlyFirst bar(String bar) { @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 ReadOnlyFirst baz(String baz) { @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 889659112325..397df373ae6b 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 ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPro @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 ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UP @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 ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowe @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 ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String prope @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 593629fa0833..0addee65b6e3 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 4e0d98c26d66..615b9a953719 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 Tag id(Long id) { @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 Tag name(String name) { @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 64c02c564b09..a83545f30479 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 8ad970eee35f..9b7b6c2d660a 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 XmlItem attributeString(String attributeString) { @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 XmlItem attributeNumber(BigDecimal attributeNumber) { @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 XmlItem attributeInteger(Integer attributeInteger) { @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 XmlItem attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -213,15 +213,15 @@ public XmlItem nameString(String nameString) { @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 XmlItem nameNumber(BigDecimal nameNumber) { @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 XmlItem nameInteger(Integer nameInteger) { @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 XmlItem nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -349,15 +349,15 @@ public XmlItem prefixString(String prefixString) { @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 XmlItem prefixNumber(BigDecimal prefixNumber) { @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 XmlItem prefixInteger(Integer prefixInteger) { @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 XmlItem prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -485,15 +485,15 @@ public XmlItem namespaceString(String namespaceString) { @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItem namespaceInteger(Integer namespaceInteger) { @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -621,15 +621,15 @@ public XmlItem prefixNsString(String prefixNsString) { @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @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 11b277874820..19216bce9fa4 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 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 d247f03fcb0a..ebc485579cab 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 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 @@ default ResponseEntity createXmlItem( ) 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 @@ default ResponseEntity fakeOuterBooleanSerialize( ) 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 @@ default ResponseEntity fakeOuterCompositeSerialize( ) 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 @@ default ResponseEntity fakeOuterNumberSerialize( ) 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 @@ default ResponseEntity testEndpointParameters( ) 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 @@ 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 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 888f4b118ab0..ce0c01322a3a 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 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 fe92a8d3cf27..65307e0d7ba2 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 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 @@ default ResponseEntity addPet( 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 da1b1ec7186c..4e10b2ec59d7 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 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 0448069b51bd..d5689ca159c8 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 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 25e7edc6691b..773291ab5b9c 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 AdditionalPropertiesAnyType name(String name) { @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 f64b28e83217..5e3b764af70a 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 AdditionalPropertiesArray name(String name) { @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 d4ccb3cac529..c57bccf770df 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 AdditionalPropertiesBoolean name(String name) { @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 2edaa067d452..6fca551155df 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -296,11 +296,11 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @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 void setAnytype2(JsonNullable anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -336,11 +336,11 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @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 4e023e5ac239..94a8cbcd6a6e 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 AdditionalPropertiesInteger name(String name) { @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 4925911430d0..ff57a4c19648 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 AdditionalPropertiesNumber name(String name) { @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 8271f56b65ee..deeb9fdddd0f 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 AdditionalPropertiesObject name(String name) { @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 2ee8c6968430..8753cbaea4f3 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 AdditionalPropertiesString name(String name) { @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 41f5fe09fc59..a66d6f16cddb 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 BigCat(String className) { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -93,11 +93,11 @@ public BigCat kind(KindEnum kind) { @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 fd0137b53292..fd49ed0ccec6 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 Capitalization smallCamel(String smallCamel) { @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 Capitalization capitalCamel(String capitalCamel) { @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 Capitalization smallSnake(String smallSnake) { @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 Capitalization capitalSnake(String capitalSnake) { @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @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 Capitalization ATT_NAME(String ATT_NAME) { @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 92dd5e2e1dd8..521f353f732d 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 Cat(String className) { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -61,11 +61,11 @@ public Cat declawed(Boolean declawed) { @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 98bde299616c..4fda94ab15cc 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 Category(String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public Category id(Long id) { @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 fc46285ac5ea..9657b6cb28b9 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 ChildWithNullable otherProperty(String otherProperty) { @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 4e03cee749d5..e46e02672204 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 ClassModel propertyClass(String propertyClass) { @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 3f16a03fdf62..133345b58ded 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 Client client(String 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 f9df4db38789..dc8dcaaac346 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 Dog(String className) { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public Dog breed(String breed) { @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 9773ea494676..6a1419957edd 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 static ArrayEnumEnum fromValue(String value) { @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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { @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 61abd2bd5d41..2da9188ff1ca 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 EnumTest(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public EnumTest enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { @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 EnumTest outerEnum(OuterEnum outerEnum) { @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 ed0112b13ad3..f749c4954d55 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 File sourceURI(String sourceURI) { @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 426e7f1f7351..344b4ab13647 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 FileSchemaTestClass file(File file) { @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 c59ee6475d11..a141053334fa 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 FormatTest(BigDecimal number, byte[] _byte, LocalDate date, String passwo this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public FormatTest integer(Integer integer) { @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 FormatTest int32(Integer int32) { @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 FormatTest int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public FormatTest _float(Float _float) { @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 FormatTest _double(Double _double) { @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 FormatTest string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @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 FormatTest uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { @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 a706e796c8f8..32df26a53291 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 HasOnlyReadOnly bar(String bar) { @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 HasOnlyReadOnly foo(String foo) { @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 337dfa4d5de4..dcc7a5b91655 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @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 1dba298e44e8..03a0d36c22bb 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 Model200Response name(Integer name) { @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 Model200Response propertyClass(String propertyClass) { @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 6ba366ec5289..a47a3421a484 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 dc06c29116f7..cdc49aefdb54 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 ModelList _123list(String _123list) { @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 959ff9d7995e..e23f9b70f1e8 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 ModelReturn _return(Integer _return) { @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 ce1f39d59bfa..5708fa3147e9 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { @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 Name property(String property) { @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 Name _123number(Integer _123number) { @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 1660dd786003..99de5c65a709 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 NumberOnly justNumber(BigDecimal justNumber) { @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 713bb66964a1..d2c42e403abf 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 59c8b16704a0..e69df693bede 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 OuterComposite myNumber(BigDecimal myNumber) { @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 OuterComposite myString(String myString) { @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 OuterComposite myBoolean(Boolean myBoolean) { @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 49238f51494d..ef9877936a60 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 static TypeEnum fromValue(String value) { 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 ParentWithNullable type(TypeEnum type) { @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 54aa2170c782..901eec55257a 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 Pet(String name, Set photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -108,15 +108,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -227,7 +227,7 @@ public Pet status(StatusEnum status) { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -235,7 +235,7 @@ public StatusEnum getStatus() { * @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 ad83db00ffc3..15329f8cb124 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 ReadOnlyFirst bar(String bar) { @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 ReadOnlyFirst baz(String baz) { @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 9f6a0d214d6a..9002188cbf7b 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 ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPro @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 ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UP @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 ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowe @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 ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String prope @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 e13401f2a3b1..5cda5fbc2ed1 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 8e03f47541ab..0aa2038f01c4 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 Tag id(Long id) { @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 Tag name(String name) { @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 1f4462a7cf4b..2dbf6f2f0dbc 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 93db0d19fad6..a5f92d54e906 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 XmlItem attributeString(String attributeString) { @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 XmlItem attributeNumber(BigDecimal attributeNumber) { @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 XmlItem attributeInteger(Integer attributeInteger) { @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 XmlItem attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public XmlItem nameString(String nameString) { @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 XmlItem nameNumber(BigDecimal nameNumber) { @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 XmlItem nameInteger(Integer nameInteger) { @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 XmlItem nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public XmlItem prefixString(String prefixString) { @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 XmlItem prefixNumber(BigDecimal prefixNumber) { @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 XmlItem prefixInteger(Integer prefixInteger) { @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 XmlItem prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public XmlItem namespaceString(String namespaceString) { @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItem namespaceInteger(Integer namespaceInteger) { @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public XmlItem prefixNsString(String prefixNsString) { @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @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 7cd95b693357..9de4f1c7ef65 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 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 dd96471acbf7..95a884fc07b8 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 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 @@ default ResponseEntity createXmlItem( ) 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 @@ default ResponseEntity fakeOuterBooleanSerialize( ) 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 @@ default ResponseEntity fakeOuterCompositeSerialize( ) 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 @@ default ResponseEntity fakeOuterNumberSerialize( ) 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 @@ default ResponseEntity testEndpointParameters( ) 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 @@ 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 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 ea562b5e2fa4..d3172d8d5300 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 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 af816afa9f64..3565d4bbb1a2 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 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 @@ default ResponseEntity addPet( 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 c86280efdc1d..96185fd64c52 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 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 5e19bcf3db44..5cb73000ed4d 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 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 25e7edc6691b..773291ab5b9c 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 AdditionalPropertiesAnyType name(String name) { @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 f64b28e83217..5e3b764af70a 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 AdditionalPropertiesArray name(String name) { @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 d4ccb3cac529..c57bccf770df 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 AdditionalPropertiesBoolean name(String name) { @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 2edaa067d452..6fca551155df 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -296,11 +296,11 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @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 void setAnytype2(JsonNullable anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -336,11 +336,11 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @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 4e023e5ac239..94a8cbcd6a6e 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 AdditionalPropertiesInteger name(String name) { @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 4925911430d0..ff57a4c19648 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 AdditionalPropertiesNumber name(String name) { @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 8271f56b65ee..deeb9fdddd0f 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 AdditionalPropertiesObject name(String name) { @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 2ee8c6968430..8753cbaea4f3 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 AdditionalPropertiesString name(String name) { @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 41f5fe09fc59..a66d6f16cddb 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 BigCat(String className) { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -93,11 +93,11 @@ public BigCat kind(KindEnum kind) { @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 fd0137b53292..fd49ed0ccec6 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 Capitalization smallCamel(String smallCamel) { @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 Capitalization capitalCamel(String capitalCamel) { @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 Capitalization smallSnake(String smallSnake) { @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 Capitalization capitalSnake(String capitalSnake) { @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @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 Capitalization ATT_NAME(String ATT_NAME) { @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 92dd5e2e1dd8..521f353f732d 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 Cat(String className) { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -61,11 +61,11 @@ public Cat declawed(Boolean declawed) { @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 98bde299616c..4fda94ab15cc 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 Category(String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public Category id(Long id) { @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 fc46285ac5ea..9657b6cb28b9 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 ChildWithNullable otherProperty(String otherProperty) { @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 4e03cee749d5..e46e02672204 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 ClassModel propertyClass(String propertyClass) { @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 3f16a03fdf62..133345b58ded 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 Client client(String 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 f9df4db38789..dc8dcaaac346 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 Dog(String className) { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public Dog breed(String breed) { @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 9773ea494676..6a1419957edd 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 static ArrayEnumEnum fromValue(String value) { @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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { @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 61abd2bd5d41..2da9188ff1ca 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 EnumTest(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public EnumTest enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { @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 EnumTest outerEnum(OuterEnum outerEnum) { @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 ed0112b13ad3..f749c4954d55 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 File sourceURI(String sourceURI) { @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 426e7f1f7351..344b4ab13647 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 FileSchemaTestClass file(File file) { @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 c59ee6475d11..a141053334fa 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 FormatTest(BigDecimal number, byte[] _byte, LocalDate date, String passwo this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public FormatTest integer(Integer integer) { @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 FormatTest int32(Integer int32) { @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 FormatTest int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public FormatTest _float(Float _float) { @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 FormatTest _double(Double _double) { @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 FormatTest string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @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 FormatTest uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { @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 a706e796c8f8..32df26a53291 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 HasOnlyReadOnly bar(String bar) { @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 HasOnlyReadOnly foo(String foo) { @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 337dfa4d5de4..dcc7a5b91655 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @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 1dba298e44e8..03a0d36c22bb 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 Model200Response name(Integer name) { @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 Model200Response propertyClass(String propertyClass) { @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 6ba366ec5289..a47a3421a484 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 dc06c29116f7..cdc49aefdb54 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 ModelList _123list(String _123list) { @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 959ff9d7995e..e23f9b70f1e8 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 ModelReturn _return(Integer _return) { @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 ce1f39d59bfa..5708fa3147e9 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { @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 Name property(String property) { @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 Name _123number(Integer _123number) { @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 1660dd786003..99de5c65a709 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 NumberOnly justNumber(BigDecimal justNumber) { @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 713bb66964a1..d2c42e403abf 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 59c8b16704a0..e69df693bede 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 OuterComposite myNumber(BigDecimal myNumber) { @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 OuterComposite myString(String myString) { @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 OuterComposite myBoolean(Boolean myBoolean) { @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 49238f51494d..ef9877936a60 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 static TypeEnum fromValue(String value) { 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 ParentWithNullable type(TypeEnum type) { @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 54aa2170c782..901eec55257a 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 Pet(String name, Set photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -108,15 +108,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -227,7 +227,7 @@ public Pet status(StatusEnum status) { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -235,7 +235,7 @@ public StatusEnum getStatus() { * @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 ad83db00ffc3..15329f8cb124 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 ReadOnlyFirst bar(String bar) { @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 ReadOnlyFirst baz(String baz) { @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 9f6a0d214d6a..9002188cbf7b 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 ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPro @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 ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UP @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 ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowe @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 ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String prope @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 e13401f2a3b1..5cda5fbc2ed1 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 8e03f47541ab..0aa2038f01c4 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 Tag id(Long id) { @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 Tag name(String name) { @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 1f4462a7cf4b..2dbf6f2f0dbc 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 93db0d19fad6..a5f92d54e906 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 XmlItem attributeString(String attributeString) { @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 XmlItem attributeNumber(BigDecimal attributeNumber) { @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 XmlItem attributeInteger(Integer attributeInteger) { @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 XmlItem attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public XmlItem nameString(String nameString) { @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 XmlItem nameNumber(BigDecimal nameNumber) { @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 XmlItem nameInteger(Integer nameInteger) { @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 XmlItem nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public XmlItem prefixString(String prefixString) { @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 XmlItem prefixNumber(BigDecimal prefixNumber) { @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 XmlItem prefixInteger(Integer prefixInteger) { @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 XmlItem prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public XmlItem namespaceString(String namespaceString) { @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItem namespaceInteger(Integer namespaceInteger) { @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public XmlItem prefixNsString(String prefixNsString) { @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @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 b12eecd4219c..de855c798928 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 @@ 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 b082ac0b8d4b..32ce81eef4dc 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.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 22116bd3678e..a1b7e13525d2 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.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 @@ default ResponseEntity createXmlItem( ) 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 @@ default ResponseEntity fakeOuterBooleanSerialize( ) 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 @@ default ResponseEntity fakeOuterCompositeSerialize( ) 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 @@ default ResponseEntity fakeOuterNumberSerialize( ) 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 @@ default ResponseEntity testEndpointParameters( ) 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 @@ 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 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 5b89daf88cac..32ead027eec3 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.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 cdc9f39a0607..da6161153e5f 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 @@ 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 22dd9512aac2..5a1b775fcaf9 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.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 e6f6e532cbd3..0a46d75a438f 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.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 @@ default ResponseEntity addPet( 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 451bf4bad636..71080a04d776 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 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 b841658ad201..a621a1a8b6b2 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 @@ 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 014f9eec9ab4..002899085294 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.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 f5f2f423867e..f7c36f6e6651 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 @@ 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 8a8222c1332b..56c0b57370be 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.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 25e7edc6691b..773291ab5b9c 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 AdditionalPropertiesAnyType name(String name) { @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 f64b28e83217..5e3b764af70a 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 AdditionalPropertiesArray name(String name) { @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 d4ccb3cac529..c57bccf770df 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 AdditionalPropertiesBoolean name(String name) { @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 2edaa067d452..6fca551155df 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -296,11 +296,11 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @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 void setAnytype2(JsonNullable anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -336,11 +336,11 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @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 4e023e5ac239..94a8cbcd6a6e 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 AdditionalPropertiesInteger name(String name) { @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 4925911430d0..ff57a4c19648 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 AdditionalPropertiesNumber name(String name) { @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 8271f56b65ee..deeb9fdddd0f 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 AdditionalPropertiesObject name(String name) { @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 2ee8c6968430..8753cbaea4f3 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 AdditionalPropertiesString name(String name) { @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 41f5fe09fc59..a66d6f16cddb 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 BigCat(String className) { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -93,11 +93,11 @@ public BigCat kind(KindEnum kind) { @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 fd0137b53292..fd49ed0ccec6 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 Capitalization smallCamel(String smallCamel) { @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 Capitalization capitalCamel(String capitalCamel) { @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 Capitalization smallSnake(String smallSnake) { @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 Capitalization capitalSnake(String capitalSnake) { @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @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 Capitalization ATT_NAME(String ATT_NAME) { @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 92dd5e2e1dd8..521f353f732d 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 Cat(String className) { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -61,11 +61,11 @@ public Cat declawed(Boolean declawed) { @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 98bde299616c..4fda94ab15cc 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 Category(String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public Category id(Long id) { @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 fc46285ac5ea..9657b6cb28b9 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 ChildWithNullable otherProperty(String otherProperty) { @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 4e03cee749d5..e46e02672204 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 ClassModel propertyClass(String propertyClass) { @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 3f16a03fdf62..133345b58ded 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 Client client(String 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 f9df4db38789..dc8dcaaac346 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 Dog(String className) { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public Dog breed(String breed) { @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 9773ea494676..6a1419957edd 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 static ArrayEnumEnum fromValue(String value) { @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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { @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 61abd2bd5d41..2da9188ff1ca 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 EnumTest(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public EnumTest enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { @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 EnumTest outerEnum(OuterEnum outerEnum) { @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 ed0112b13ad3..f749c4954d55 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 File sourceURI(String sourceURI) { @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 426e7f1f7351..344b4ab13647 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 FileSchemaTestClass file(File file) { @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 c59ee6475d11..a141053334fa 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 FormatTest(BigDecimal number, byte[] _byte, LocalDate date, String passwo this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public FormatTest integer(Integer integer) { @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 FormatTest int32(Integer int32) { @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 FormatTest int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public FormatTest _float(Float _float) { @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 FormatTest _double(Double _double) { @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 FormatTest string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @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 FormatTest uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { @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 a706e796c8f8..32df26a53291 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 HasOnlyReadOnly bar(String bar) { @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 HasOnlyReadOnly foo(String foo) { @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 337dfa4d5de4..dcc7a5b91655 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @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 1dba298e44e8..03a0d36c22bb 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 Model200Response name(Integer name) { @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 Model200Response propertyClass(String propertyClass) { @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 6ba366ec5289..a47a3421a484 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 dc06c29116f7..cdc49aefdb54 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 ModelList _123list(String _123list) { @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 959ff9d7995e..e23f9b70f1e8 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 ModelReturn _return(Integer _return) { @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 ce1f39d59bfa..5708fa3147e9 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { @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 Name property(String property) { @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 Name _123number(Integer _123number) { @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 1660dd786003..99de5c65a709 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 NumberOnly justNumber(BigDecimal justNumber) { @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 713bb66964a1..d2c42e403abf 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 59c8b16704a0..e69df693bede 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 OuterComposite myNumber(BigDecimal myNumber) { @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 OuterComposite myString(String myString) { @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 OuterComposite myBoolean(Boolean myBoolean) { @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 49238f51494d..ef9877936a60 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 static TypeEnum fromValue(String value) { 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 ParentWithNullable type(TypeEnum type) { @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 54aa2170c782..901eec55257a 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 Pet(String name, Set photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -108,15 +108,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -227,7 +227,7 @@ public Pet status(StatusEnum status) { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -235,7 +235,7 @@ public StatusEnum getStatus() { * @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 ad83db00ffc3..15329f8cb124 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 ReadOnlyFirst bar(String bar) { @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 ReadOnlyFirst baz(String baz) { @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 9f6a0d214d6a..9002188cbf7b 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 ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPro @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 ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UP @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 ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowe @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 ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String prope @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 e13401f2a3b1..5cda5fbc2ed1 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 8e03f47541ab..0aa2038f01c4 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 Tag id(Long id) { @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 Tag name(String name) { @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 1f4462a7cf4b..2dbf6f2f0dbc 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 93db0d19fad6..a5f92d54e906 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 XmlItem attributeString(String attributeString) { @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 XmlItem attributeNumber(BigDecimal attributeNumber) { @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 XmlItem attributeInteger(Integer attributeInteger) { @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 XmlItem attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public XmlItem nameString(String nameString) { @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 XmlItem nameNumber(BigDecimal nameNumber) { @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 XmlItem nameInteger(Integer nameInteger) { @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 XmlItem nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public XmlItem prefixString(String prefixString) { @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 XmlItem prefixNumber(BigDecimal prefixNumber) { @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 XmlItem prefixInteger(Integer prefixInteger) { @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 XmlItem prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public XmlItem namespaceString(String namespaceString) { @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItem namespaceInteger(Integer namespaceInteger) { @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public XmlItem prefixNsString(String prefixNsString) { @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @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 71425f04440f..e3e1ad8651e2 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 @@ 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 @@ default Pet addPet( 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 8e117ef00d04..4754082716ab 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.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 e74cbba93678..c6f24e728559 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 @@ 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 f55fdf42f06e..63bb53218ef6 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 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 51cd6729bf66..7f17fc4e66ea 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 @@ 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 01120bd81f84..b6e24d32a971 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 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 d592426fd336..2ec3e3160afe 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 Category id(Long id) { @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 Category name(String name) { @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 15d6da4ff226..7716612070f8 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 b01430954d18..dcb0f8b3b2c6 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 d9d967eceda5..1c6536227657 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -106,15 +106,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -224,7 +224,7 @@ public Pet status(StatusEnum status) { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -232,7 +232,7 @@ public StatusEnum getStatus() { * @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 76c7c984abc3..63bee335e337 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 Tag id(Long id) { @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 Tag name(String name) { @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 68e44185f3f3..e4214f70a6a9 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 b12eecd4219c..de855c798928 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 @@ 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 b082ac0b8d4b..32ce81eef4dc 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.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 22116bd3678e..a1b7e13525d2 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.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 @@ default ResponseEntity createXmlItem( ) 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 @@ default ResponseEntity fakeOuterBooleanSerialize( ) 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 @@ default ResponseEntity fakeOuterCompositeSerialize( ) 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 @@ default ResponseEntity fakeOuterNumberSerialize( ) 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 @@ default ResponseEntity testEndpointParameters( ) 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 @@ 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 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 5b89daf88cac..32ead027eec3 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.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 cdc9f39a0607..da6161153e5f 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 @@ 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 22dd9512aac2..5a1b775fcaf9 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.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 e6f6e532cbd3..0a46d75a438f 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.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 @@ default ResponseEntity addPet( 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 451bf4bad636..71080a04d776 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 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 b841658ad201..a621a1a8b6b2 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 @@ 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 014f9eec9ab4..002899085294 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.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 f5f2f423867e..f7c36f6e6651 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 @@ 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 8a8222c1332b..56c0b57370be 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.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 903e92ae0938..0690e94af2f4 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 AdditionalPropertiesAnyType(@Nullable String name) { this.name = name; } - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@Nullable String name) { this.name = name; return this; } @@ -52,11 +52,11 @@ public AdditionalPropertiesAnyType name(String name) { @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 f5994ebe50ff..979a84b89470 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 AdditionalPropertiesArray(@Nullable String name) { this.name = name; } - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@Nullable String name) { this.name = name; return this; } @@ -53,11 +53,11 @@ public AdditionalPropertiesArray name(String name) { @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 62ee336a41a8..b97a2e7581c0 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 AdditionalPropertiesBoolean(@Nullable String name) { this.name = name; } - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@Nullable String name) { this.name = name; return this; } @@ -52,11 +52,11 @@ public AdditionalPropertiesBoolean name(String name) { @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 f179805ae6a9..d4ab2a60be8c 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -317,11 +317,11 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @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 void setAnytype2(JsonNullable anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -357,11 +357,11 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @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 84b7ac346912..e762f2f010f8 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 AdditionalPropertiesInteger(@Nullable String name) { this.name = name; } - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@Nullable String name) { this.name = name; return this; } @@ -52,11 +52,11 @@ public AdditionalPropertiesInteger name(String name) { @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 4ea6585da0c5..f5563a5c5f2c 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 AdditionalPropertiesNumber(@Nullable String name) { this.name = name; } - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@Nullable String name) { this.name = name; return this; } @@ -53,11 +53,11 @@ public AdditionalPropertiesNumber name(String name) { @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 a7b64c53cb35..35573e3e9a27 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 AdditionalPropertiesObject(@Nullable String name) { this.name = name; } - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@Nullable String name) { this.name = name; return this; } @@ -53,11 +53,11 @@ public AdditionalPropertiesObject name(String name) { @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 0138b18c60fc..3fef15301941 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 AdditionalPropertiesString(@Nullable String name) { this.name = name; } - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@Nullable String name) { this.name = name; return this; } @@ -52,11 +52,11 @@ public AdditionalPropertiesString name(String name) { @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 4bbd1409a585..aff2bbc038c8 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 BigCat(@Nullable KindEnum kind, @Nullable Boolean declawed, String classN this.kind = kind; } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -101,11 +101,11 @@ public BigCat kind(KindEnum kind) { @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 6fd9748ac044..0cbc34010895 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 Capitalization(@Nullable String smallCamel, @Nullable String capitalCamel 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 Capitalization smallCamel(String smallCamel) { @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 Capitalization capitalCamel(String capitalCamel) { @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 Capitalization smallSnake(String smallSnake) { @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 Capitalization capitalSnake(String capitalSnake) { @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @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 Capitalization ATT_NAME(String ATT_NAME) { @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 eb392c50e3ae..63c25f73e674 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 Cat(@Nullable Boolean declawed, String className, String color) { this.declawed = declawed; } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -69,11 +69,11 @@ public Cat declawed(Boolean declawed) { @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 f8de73020a79..46c7c4cac569 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 Category(@Nullable Long id, String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -58,11 +58,11 @@ public Category id(Long id) { @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 c021fc62407c..c7d2bf8d53d2 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 ChildWithNullable(@Nullable String otherProperty, @Nullable TypeEnum type this.otherProperty = otherProperty; } - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@Nullable String otherProperty) { this.otherProperty = otherProperty; return this; } @@ -57,11 +57,11 @@ public ChildWithNullable otherProperty(String otherProperty) { @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 11b10ffae5fe..e8474846b998 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 ClassModel(@Nullable String propertyClass) { this.propertyClass = propertyClass; } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -49,11 +49,11 @@ public ClassModel propertyClass(String propertyClass) { @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 418829a86d16..a57798186874 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 Client(@Nullable String 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 Client client(String 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 9d7df1bf534b..72ce4db50346 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 Dog(@Nullable String breed, String className, String color) { this.breed = breed; } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -61,11 +61,11 @@ public Dog breed(String breed) { @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 194fcb88c1c1..1f06667a549d 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 EnumArrays(@Nullable JustSymbolEnum justSymbol, List array this.arrayEnum = arrayEnum; } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -126,11 +126,11 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { @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 38206ad73fa1..d018ad78a290 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 EnumTest(@Nullable EnumStringEnum enumString, EnumStringRequiredEnum enum this.outerEnum = outerEnum; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -215,11 +215,11 @@ public EnumTest enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -255,15 +255,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { @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 EnumTest outerEnum(OuterEnum outerEnum) { @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 2ae05780f2d7..19c8658a2ffb 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 File(@Nullable String sourceURI) { this.sourceURI = sourceURI; } - public File sourceURI(String sourceURI) { + public File sourceURI(@Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -49,11 +49,11 @@ public File sourceURI(String sourceURI) { @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 9e7bf6d6063d..00c238671a60 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 FileSchemaTestClass(@Nullable File file, List<@Valid File> files) { this.files = files; } - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@Nullable File file) { this.file = file; return this; } @@ -56,11 +56,11 @@ public FileSchemaTestClass file(File file) { @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 fe18db1e6bf6..674258d992da 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 FormatTest(@Nullable Integer integer, @Nullable Integer int32, @Nullable this.bigDecimal = bigDecimal; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -109,15 +109,15 @@ public FormatTest integer(Integer integer) { @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 FormatTest int32(Integer int32) { @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 FormatTest int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -195,15 +195,15 @@ public FormatTest _float(Float _float) { @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 FormatTest _double(Double _double) { @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 FormatTest string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -317,15 +317,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @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 FormatTest uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -377,11 +377,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { @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 e7857f93331d..456a88ad9789 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 HasOnlyReadOnly(@Nullable String bar, @Nullable String foo) { this.foo = foo; } - public HasOnlyReadOnly bar(String bar) { + public HasOnlyReadOnly bar(@Nullable String bar) { this.bar = bar; return this; } @@ -53,15 +53,15 @@ public HasOnlyReadOnly bar(String bar) { @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 HasOnlyReadOnly foo(String foo) { @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 cda9da53132c..a5e287950b36 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 MixedPropertiesAndAdditionalPropertiesClass(@Nullable UUID uuid, @Nullabl this.map = map; } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -62,15 +62,15 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @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 2acc5c472382..a0e0e892c9b6 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 Model200Response(@Nullable Integer name, @Nullable String propertyClass) this.propertyClass = propertyClass; } - public Model200Response name(Integer name) { + public Model200Response name(@Nullable Integer name) { this.name = name; return this; } @@ -54,15 +54,15 @@ public Model200Response name(Integer name) { @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 Model200Response propertyClass(String propertyClass) { @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 467bf952f841..4a9fea8748e5 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 ModelApiResponse(@Nullable Integer code, @Nullable String type, @Nullable this.message = message; } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@Nullable Integer code) { this.code = code; return this; } @@ -56,15 +56,15 @@ public ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 253d42532547..fd97d1a78049 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 ModelList(@Nullable String _123list) { this._123list = _123list; } - public ModelList _123list(String _123list) { + public ModelList _123list(@Nullable String _123list) { this._123list = _123list; return this; } @@ -50,11 +50,11 @@ public ModelList _123list(String _123list) { @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 12774d6b6051..f6b44aca3449 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 ModelReturn(@Nullable Integer _return) { this._return = _return; } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@Nullable Integer _return) { this._return = _return; return this; } @@ -51,11 +51,11 @@ public ModelReturn _return(Integer _return) { @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 8af038c75cff..2c1a099aacef 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { @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 Name property(String property) { @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 Name _123number(Integer _123number) { @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 877709bc4cb6..031eb8e82bea 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 NumberOnly(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -49,11 +49,11 @@ public NumberOnly justNumber(BigDecimal justNumber) { @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 7e97e4ff176a..8c3bddb62e18 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 Order(@Nullable Long id, @Nullable Long petId, @Nullable Integer quantity this.complete = complete; } - public Order id(Long id) { + public Order id(@Nullable Long id) { this.id = id; return this; } @@ -104,15 +104,15 @@ public Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 8d9c0d6a44f0..b7fb15d8b104 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 OuterComposite(@Nullable BigDecimal myNumber, @Nullable String myString, this.myBoolean = myBoolean; } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -55,15 +55,15 @@ public OuterComposite myNumber(BigDecimal myNumber) { @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 OuterComposite myString(String myString) { @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 OuterComposite myBoolean(Boolean myBoolean) { @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 6ed19ef34895..3260c5b57255 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 ParentWithNullable(@Nullable TypeEnum type, String nullableProperty) { 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 ParentWithNullable type(TypeEnum type) { @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 a952a87c2573..8df6168c984b 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 Pet(@Nullable Long id, @Nullable Category category, String name, Set tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -239,7 +239,7 @@ public Pet status(StatusEnum status) { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -247,7 +247,7 @@ public StatusEnum getStatus() { * @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 06fa26e55d98..73732ea6f32d 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 ReadOnlyFirst(@Nullable String bar, @Nullable String baz) { this.baz = baz; } - public ReadOnlyFirst bar(String bar) { + public ReadOnlyFirst bar(@Nullable String bar) { this.bar = bar; return this; } @@ -51,15 +51,15 @@ public ReadOnlyFirst bar(String bar) { @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 ReadOnlyFirst baz(String baz) { @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 0d8d86f73a19..f3625a7f377f 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 ResponseObjectWithDifferentFieldNames(@Nullable String normalPropertyName this.propertyNameWithSpaces = propertyNameWithSpaces; } - public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) { + public ResponseObjectWithDifferentFieldNames normalPropertyName(@Nullable String normalPropertyName) { this.normalPropertyName = normalPropertyName; return this; } @@ -57,15 +57,15 @@ public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPro @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 ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UP @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 ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowe @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 ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String prope @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 ee897fa52afb..194278e35072 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 SpecialModelName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -50,11 +50,11 @@ public SpecialModelName(@Nullable Long $specialPropertyName) { @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 0be421ec8040..b00a85d4472b 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 Tag(@Nullable Long id, @Nullable String name) { this.name = name; } - public Tag id(Long id) { + public Tag id(@Nullable Long id) { this.id = id; return this; } @@ -51,15 +51,15 @@ public Tag id(Long id) { @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 Tag name(String name) { @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 c60254f13c38..8fc13478bd1c 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 User(@Nullable Long id, @Nullable String username, @Nullable String first this.userStatus = userStatus; } - public User id(Long id) { + public User id(@Nullable Long id) { this.id = id; return this; } @@ -69,15 +69,15 @@ public User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 ec18d1486f22..4f831405a589 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 XmlItem(@Nullable String attributeString, @Nullable BigDecimal attributeN this.prefixNsWrappedArray = prefixNsWrappedArray; } - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -145,15 +145,15 @@ public XmlItem attributeString(String attributeString) { @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 XmlItem attributeNumber(BigDecimal attributeNumber) { @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 XmlItem attributeInteger(Integer attributeInteger) { @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 XmlItem attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -253,15 +253,15 @@ public XmlItem nameString(String nameString) { @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 XmlItem nameNumber(BigDecimal nameNumber) { @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 XmlItem nameInteger(Integer nameInteger) { @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 XmlItem nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -389,15 +389,15 @@ public XmlItem prefixString(String prefixString) { @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 XmlItem prefixNumber(BigDecimal prefixNumber) { @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 XmlItem prefixInteger(Integer prefixInteger) { @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 XmlItem prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -525,15 +525,15 @@ public XmlItem namespaceString(String namespaceString) { @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItem namespaceInteger(Integer namespaceInteger) { @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -661,15 +661,15 @@ public XmlItem prefixNsString(String prefixNsString) { @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @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 cdddd2f0af9d..8d5d18ae5399 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.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 5c3be74d7ed6..e3e287b104ab 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 @@ 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 ad253489c8cf..51b921cc665a 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.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 19a6cf00577b..c8327740559b 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 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 b59d70a1b4c8..5116c15ddd6a 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 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 06fdba953a9a..137d5464b90a 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 Category id(Long id) { */ @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 Category name(String name) { */ @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 9064a1200418..1b1944c9e221 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 ModelApiResponse code(Integer code) { */ @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 ModelApiResponse type(String type) { */ @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 ModelApiResponse message(String message) { */ @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 a64cf7a6775d..61d646a50686 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { */ @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 Order petId(Long petId) { */ @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 Order quantity(Integer quantity) { */ @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 Order shipDate(OffsetDateTime shipDate) { */ @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 Order status(StatusEnum 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-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 10c50147f5ac..bf723669c8c3 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -102,15 +102,15 @@ public Pet id(Long id) { */ @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 Pet category(Category category) { */ @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -215,7 +215,7 @@ public Pet status(StatusEnum status) { @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -223,7 +223,7 @@ public StatusEnum getStatus() { * @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 b9e152d5d6c5..3ad3c6cf4dfc 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 Tag id(Long id) { */ @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 Tag name(String name) { */ @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 e56d600571ba..8bf9643a895f 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 User id(Long id) { */ @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 User username(String username) { */ @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 User firstName(String firstName) { */ @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 User lastName(String lastName) { */ @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 User email(String email) { */ @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 User password(String password) { */ @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 User phone(String phone) { */ @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 User userStatus(Integer userStatus) { */ @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 11b277874820..19216bce9fa4 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 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 5c86c9d3248d..fca14a34bedd 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 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 @@ default ResponseEntity createXmlItem( ) 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 @@ default ResponseEntity fakeOuterBooleanSerialize( ) 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 @@ default ResponseEntity fakeOuterCompositeSerialize( ) 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 @@ default ResponseEntity fakeOuterNumberSerialize( ) 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 @@ default ResponseEntity testEndpointParameters( ) 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 @@ default ResponseEntity testEnumParameters( 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 888f4b118ab0..ce0c01322a3a 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 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 cae327ef7e01..2a160f99e07d 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 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 da1b1ec7186c..4e10b2ec59d7 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 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 0448069b51bd..d5689ca159c8 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 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 25e7edc6691b..773291ab5b9c 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 AdditionalPropertiesAnyType name(String name) { @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 f64b28e83217..5e3b764af70a 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 AdditionalPropertiesArray name(String name) { @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 d4ccb3cac529..c57bccf770df 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 AdditionalPropertiesBoolean name(String name) { @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 2edaa067d452..6fca551155df 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -296,11 +296,11 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @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 void setAnytype2(JsonNullable anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -336,11 +336,11 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @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 4e023e5ac239..94a8cbcd6a6e 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 AdditionalPropertiesInteger name(String name) { @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 4925911430d0..ff57a4c19648 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 AdditionalPropertiesNumber name(String name) { @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 8271f56b65ee..deeb9fdddd0f 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 AdditionalPropertiesObject name(String name) { @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 2ee8c6968430..8753cbaea4f3 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 AdditionalPropertiesString name(String name) { @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 41f5fe09fc59..a66d6f16cddb 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 BigCat(String className) { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -93,11 +93,11 @@ public BigCat kind(KindEnum kind) { @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 fd0137b53292..fd49ed0ccec6 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 Capitalization smallCamel(String smallCamel) { @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 Capitalization capitalCamel(String capitalCamel) { @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 Capitalization smallSnake(String smallSnake) { @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 Capitalization capitalSnake(String capitalSnake) { @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @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 Capitalization ATT_NAME(String ATT_NAME) { @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 92dd5e2e1dd8..521f353f732d 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 Cat(String className) { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -61,11 +61,11 @@ public Cat declawed(Boolean declawed) { @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 98bde299616c..4fda94ab15cc 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 Category(String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public Category id(Long id) { @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 fc46285ac5ea..9657b6cb28b9 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 ChildWithNullable otherProperty(String otherProperty) { @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 4e03cee749d5..e46e02672204 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 ClassModel propertyClass(String propertyClass) { @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 3f16a03fdf62..133345b58ded 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 Client client(String 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 f9df4db38789..dc8dcaaac346 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 Dog(String className) { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public Dog breed(String breed) { @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 9773ea494676..6a1419957edd 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 static ArrayEnumEnum fromValue(String value) { @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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { @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 61abd2bd5d41..2da9188ff1ca 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 EnumTest(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public EnumTest enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { @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 EnumTest outerEnum(OuterEnum outerEnum) { @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 ed0112b13ad3..f749c4954d55 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 File sourceURI(String sourceURI) { @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 426e7f1f7351..344b4ab13647 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 FileSchemaTestClass file(File file) { @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 c59ee6475d11..a141053334fa 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 FormatTest(BigDecimal number, byte[] _byte, LocalDate date, String passwo this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public FormatTest integer(Integer integer) { @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 FormatTest int32(Integer int32) { @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 FormatTest int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public FormatTest _float(Float _float) { @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 FormatTest _double(Double _double) { @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 FormatTest string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @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 FormatTest uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { @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 a706e796c8f8..32df26a53291 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 HasOnlyReadOnly bar(String bar) { @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 HasOnlyReadOnly foo(String foo) { @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 337dfa4d5de4..dcc7a5b91655 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @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 1dba298e44e8..03a0d36c22bb 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 Model200Response name(Integer name) { @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 Model200Response propertyClass(String propertyClass) { @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 6ba366ec5289..a47a3421a484 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 dc06c29116f7..cdc49aefdb54 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 ModelList _123list(String _123list) { @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 959ff9d7995e..e23f9b70f1e8 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 ModelReturn _return(Integer _return) { @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 ce1f39d59bfa..5708fa3147e9 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { @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 Name property(String property) { @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 Name _123number(Integer _123number) { @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 1660dd786003..99de5c65a709 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 NumberOnly justNumber(BigDecimal justNumber) { @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 713bb66964a1..d2c42e403abf 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 59c8b16704a0..e69df693bede 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 OuterComposite myNumber(BigDecimal myNumber) { @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 OuterComposite myString(String myString) { @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 OuterComposite myBoolean(Boolean myBoolean) { @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 49238f51494d..ef9877936a60 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 static TypeEnum fromValue(String value) { 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 ParentWithNullable type(TypeEnum type) { @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 54aa2170c782..901eec55257a 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 Pet(String name, Set photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -108,15 +108,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -227,7 +227,7 @@ public Pet status(StatusEnum status) { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -235,7 +235,7 @@ public StatusEnum getStatus() { * @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 ad83db00ffc3..15329f8cb124 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 ReadOnlyFirst bar(String bar) { @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 ReadOnlyFirst baz(String baz) { @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 9f6a0d214d6a..9002188cbf7b 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 ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPro @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 ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UP @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 ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowe @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 ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String prope @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 e13401f2a3b1..5cda5fbc2ed1 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 8e03f47541ab..0aa2038f01c4 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 Tag id(Long id) { @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 Tag name(String name) { @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 1f4462a7cf4b..2dbf6f2f0dbc 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 93db0d19fad6..a5f92d54e906 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 XmlItem attributeString(String attributeString) { @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 XmlItem attributeNumber(BigDecimal attributeNumber) { @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 XmlItem attributeInteger(Integer attributeInteger) { @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 XmlItem attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public XmlItem nameString(String nameString) { @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 XmlItem nameNumber(BigDecimal nameNumber) { @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 XmlItem nameInteger(Integer nameInteger) { @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 XmlItem nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public XmlItem prefixString(String prefixString) { @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 XmlItem prefixNumber(BigDecimal prefixNumber) { @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 XmlItem prefixInteger(Integer prefixInteger) { @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 XmlItem prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public XmlItem namespaceString(String namespaceString) { @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItem namespaceInteger(Integer namespaceInteger) { @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public XmlItem prefixNsString(String prefixNsString) { @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @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 c3ccf8c0a18d..6a78164f7cc3 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.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 @@ default ResponseEntity addPet( 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 501c1fc923bb..e674b3c7748e 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.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 fd15a8b2557b..b9eb373eabcc 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.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 aa5db0bd4ffa..8c9fe11ab7a6 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.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 @@ default ResponseEntity addPet( 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 7ce733c17b37..11fcda03f0e3 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.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 550503a4730b..4f0f4eb1fc16 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.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 058aa25a0368..f2ecb66662c6 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 a5ae8e362dd0..ac594921da37 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 2a043681c09b..e7056a30ec50 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 static StatusEnum fromValue(String value) { 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 c194df759a82..1246326e8cc7 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 Pet(String name, List photoUrls) { 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 Pet addTagsItem(Tag tagsItem) { } - 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 dbc1bac75fcd..0765f071de1c 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 67327ab447a7..4ee447b33494 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 4b7168c21b1a..000750abf8ae 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.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 @@ default ResponseEntity addPet( 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 94e9a75c3d66..ee5eda475d52 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.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 5b59e5511544..4a393a91ab12 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.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 88a64708ec3e..cbc30c4b0c26 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.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 4de2e8d283d4..c6c1e2c89035 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.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 062ef7a9183d..c999d30c3433 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.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 b2c04d0949d8..da305c22ca02 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 Category id(Long id) { @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 Category name(String name) { @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 119789df3d6b..0cf7d130582d 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 f648544c6b15..822435d2a0cf 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 b53c806b8e18..6e170f8679b3 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -105,15 +105,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -223,7 +223,7 @@ public Pet status(StatusEnum status) { @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 StatusEnum getStatus() { * @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 96a8a4339c05..556fec8368f7 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 Tag id(Long id) { @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 Tag name(String name) { @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 308cae933a24..650e0fff926d 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 bf23e47d3132..2c63445a8e4d 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 @@ 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 850ebd053288..e46b6d56b8b5 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 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 15f3f3fef8c5..4c3b32faae36 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.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 @@ default Mono testEndpointParameters( @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 @@ default Mono 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 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 e3ecabc85913..795fb50b74db 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.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 29f360e25fdc..adbf5f0d310b 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 @@ 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 da4937fd8a65..71b65f12569f 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 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 c6b02cde90f8..3bcb956fb1b6 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.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 @@ default Mono addPet( 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 9028f1d432f6..caee530115a7 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 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 963e2672a860..da20eb545317 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 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 682e082c3d08..7b6c899e8c31 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 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 f70d715825d8..0d48a20d466a 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 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 f776ff244118..77b750ac84e2 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 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 25e7edc6691b..773291ab5b9c 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 AdditionalPropertiesAnyType name(String name) { @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 f64b28e83217..5e3b764af70a 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 AdditionalPropertiesArray name(String name) { @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 d4ccb3cac529..c57bccf770df 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 AdditionalPropertiesBoolean name(String name) { @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 2edaa067d452..6fca551155df 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -296,11 +296,11 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @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 void setAnytype2(JsonNullable anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -336,11 +336,11 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @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 4e023e5ac239..94a8cbcd6a6e 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 AdditionalPropertiesInteger name(String name) { @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 4925911430d0..ff57a4c19648 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 AdditionalPropertiesNumber name(String name) { @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 8271f56b65ee..deeb9fdddd0f 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 AdditionalPropertiesObject name(String name) { @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 2ee8c6968430..8753cbaea4f3 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 AdditionalPropertiesString name(String name) { @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 41f5fe09fc59..a66d6f16cddb 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 BigCat(String className) { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -93,11 +93,11 @@ public BigCat kind(KindEnum kind) { @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 fd0137b53292..fd49ed0ccec6 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 Capitalization smallCamel(String smallCamel) { @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 Capitalization capitalCamel(String capitalCamel) { @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 Capitalization smallSnake(String smallSnake) { @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 Capitalization capitalSnake(String capitalSnake) { @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @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 Capitalization ATT_NAME(String ATT_NAME) { @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 92dd5e2e1dd8..521f353f732d 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 Cat(String className) { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -61,11 +61,11 @@ public Cat declawed(Boolean declawed) { @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 98bde299616c..4fda94ab15cc 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 Category(String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public Category id(Long id) { @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 fc46285ac5ea..9657b6cb28b9 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 ChildWithNullable otherProperty(String otherProperty) { @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 4e03cee749d5..e46e02672204 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 ClassModel propertyClass(String propertyClass) { @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 3f16a03fdf62..133345b58ded 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 Client client(String 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 f9df4db38789..dc8dcaaac346 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 Dog(String className) { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public Dog breed(String breed) { @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 9773ea494676..6a1419957edd 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 static ArrayEnumEnum fromValue(String value) { @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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { @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 61abd2bd5d41..2da9188ff1ca 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 EnumTest(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public EnumTest enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { @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 EnumTest outerEnum(OuterEnum outerEnum) { @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 ed0112b13ad3..f749c4954d55 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 File sourceURI(String sourceURI) { @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 426e7f1f7351..344b4ab13647 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 FileSchemaTestClass file(File file) { @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 c59ee6475d11..a141053334fa 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 FormatTest(BigDecimal number, byte[] _byte, LocalDate date, String passwo this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public FormatTest integer(Integer integer) { @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 FormatTest int32(Integer int32) { @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 FormatTest int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public FormatTest _float(Float _float) { @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 FormatTest _double(Double _double) { @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 FormatTest string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @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 FormatTest uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { @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 a706e796c8f8..32df26a53291 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 HasOnlyReadOnly bar(String bar) { @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 HasOnlyReadOnly foo(String foo) { @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 337dfa4d5de4..dcc7a5b91655 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @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 1dba298e44e8..03a0d36c22bb 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 Model200Response name(Integer name) { @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 Model200Response propertyClass(String propertyClass) { @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 6ba366ec5289..a47a3421a484 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 dc06c29116f7..cdc49aefdb54 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 ModelList _123list(String _123list) { @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 959ff9d7995e..e23f9b70f1e8 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 ModelReturn _return(Integer _return) { @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 ce1f39d59bfa..5708fa3147e9 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { @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 Name property(String property) { @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 Name _123number(Integer _123number) { @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 1660dd786003..99de5c65a709 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 NumberOnly justNumber(BigDecimal justNumber) { @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 713bb66964a1..d2c42e403abf 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 59c8b16704a0..e69df693bede 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 OuterComposite myNumber(BigDecimal myNumber) { @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 OuterComposite myString(String myString) { @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 OuterComposite myBoolean(Boolean myBoolean) { @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 49238f51494d..ef9877936a60 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 static TypeEnum fromValue(String value) { 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 ParentWithNullable type(TypeEnum type) { @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 54aa2170c782..901eec55257a 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 Pet(String name, Set photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -108,15 +108,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -227,7 +227,7 @@ public Pet status(StatusEnum status) { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -235,7 +235,7 @@ public StatusEnum getStatus() { * @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 ad83db00ffc3..15329f8cb124 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 ReadOnlyFirst bar(String bar) { @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 ReadOnlyFirst baz(String baz) { @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 9f6a0d214d6a..9002188cbf7b 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 ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPro @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 ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UP @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 ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowe @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 ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String prope @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 e13401f2a3b1..5cda5fbc2ed1 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 8e03f47541ab..0aa2038f01c4 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 Tag id(Long id) { @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 Tag name(String name) { @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 1f4462a7cf4b..2dbf6f2f0dbc 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 93db0d19fad6..a5f92d54e906 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 XmlItem attributeString(String attributeString) { @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 XmlItem attributeNumber(BigDecimal attributeNumber) { @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 XmlItem attributeInteger(Integer attributeInteger) { @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 XmlItem attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public XmlItem nameString(String nameString) { @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 XmlItem nameNumber(BigDecimal nameNumber) { @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 XmlItem nameInteger(Integer nameInteger) { @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 XmlItem nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public XmlItem prefixString(String prefixString) { @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 XmlItem prefixNumber(BigDecimal prefixNumber) { @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 XmlItem prefixInteger(Integer prefixInteger) { @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 XmlItem prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public XmlItem namespaceString(String namespaceString) { @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItem namespaceInteger(Integer namespaceInteger) { @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public XmlItem prefixNsString(String prefixNsString) { @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @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 549808e2987b..418646a29769 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 @@ 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 82a289c63edc..ea2ba8426141 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.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 2ecb9718ff7e..5318a58beabe 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.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 @@ default Mono> testEndpointParameters( ) 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 @@ default Mono> 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 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 1c3d92a3e188..b9c384d80af2 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.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 53c56518ae3f..e47d1240a594 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 @@ 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 2436604bb6fe..d01abbacccc5 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.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 fa4910653444..253dc4182a16 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.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 @@ default Mono> addPet( 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 7dd7ea45a468..b673d32f11c6 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 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 e1e2f27094b0..6a030a93d985 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 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 38c7cbc110e4..ab1281340b06 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.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 628c1393602c..ce8cfe8b45d1 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 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 792a2d5e9055..94641ad0c7c0 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.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 25e7edc6691b..773291ab5b9c 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 AdditionalPropertiesAnyType name(String name) { @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 f64b28e83217..5e3b764af70a 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 AdditionalPropertiesArray name(String name) { @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 d4ccb3cac529..c57bccf770df 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 AdditionalPropertiesBoolean name(String name) { @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 2edaa067d452..6fca551155df 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -296,11 +296,11 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @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 void setAnytype2(JsonNullable anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -336,11 +336,11 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @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 4e023e5ac239..94a8cbcd6a6e 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 AdditionalPropertiesInteger name(String name) { @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 4925911430d0..ff57a4c19648 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 AdditionalPropertiesNumber name(String name) { @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 8271f56b65ee..deeb9fdddd0f 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 AdditionalPropertiesObject name(String name) { @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 2ee8c6968430..8753cbaea4f3 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 AdditionalPropertiesString name(String name) { @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 41f5fe09fc59..a66d6f16cddb 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 BigCat(String className) { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -93,11 +93,11 @@ public BigCat kind(KindEnum kind) { @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 fd0137b53292..fd49ed0ccec6 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 Capitalization smallCamel(String smallCamel) { @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 Capitalization capitalCamel(String capitalCamel) { @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 Capitalization smallSnake(String smallSnake) { @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 Capitalization capitalSnake(String capitalSnake) { @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @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 Capitalization ATT_NAME(String ATT_NAME) { @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 92dd5e2e1dd8..521f353f732d 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 Cat(String className) { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -61,11 +61,11 @@ public Cat declawed(Boolean declawed) { @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 98bde299616c..4fda94ab15cc 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 Category(String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public Category id(Long id) { @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 fc46285ac5ea..9657b6cb28b9 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 ChildWithNullable otherProperty(String otherProperty) { @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 4e03cee749d5..e46e02672204 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 ClassModel propertyClass(String propertyClass) { @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 3f16a03fdf62..133345b58ded 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 Client client(String 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 f9df4db38789..dc8dcaaac346 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 Dog(String className) { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public Dog breed(String breed) { @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 9773ea494676..6a1419957edd 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 static ArrayEnumEnum fromValue(String value) { @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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { @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 61abd2bd5d41..2da9188ff1ca 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 EnumTest(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public EnumTest enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { @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 EnumTest outerEnum(OuterEnum outerEnum) { @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 ed0112b13ad3..f749c4954d55 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 File sourceURI(String sourceURI) { @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 426e7f1f7351..344b4ab13647 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 FileSchemaTestClass file(File file) { @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 c59ee6475d11..a141053334fa 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 FormatTest(BigDecimal number, byte[] _byte, LocalDate date, String passwo this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public FormatTest integer(Integer integer) { @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 FormatTest int32(Integer int32) { @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 FormatTest int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public FormatTest _float(Float _float) { @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 FormatTest _double(Double _double) { @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 FormatTest string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @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 FormatTest uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { @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 a706e796c8f8..32df26a53291 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 HasOnlyReadOnly bar(String bar) { @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 HasOnlyReadOnly foo(String foo) { @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 337dfa4d5de4..dcc7a5b91655 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @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 1dba298e44e8..03a0d36c22bb 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 Model200Response name(Integer name) { @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 Model200Response propertyClass(String propertyClass) { @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 6ba366ec5289..a47a3421a484 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 dc06c29116f7..cdc49aefdb54 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 ModelList _123list(String _123list) { @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 959ff9d7995e..e23f9b70f1e8 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 ModelReturn _return(Integer _return) { @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 ce1f39d59bfa..5708fa3147e9 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { @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 Name property(String property) { @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 Name _123number(Integer _123number) { @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 1660dd786003..99de5c65a709 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 NumberOnly justNumber(BigDecimal justNumber) { @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 713bb66964a1..d2c42e403abf 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 59c8b16704a0..e69df693bede 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 OuterComposite myNumber(BigDecimal myNumber) { @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 OuterComposite myString(String myString) { @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 OuterComposite myBoolean(Boolean myBoolean) { @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 49238f51494d..ef9877936a60 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 static TypeEnum fromValue(String value) { 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 ParentWithNullable type(TypeEnum type) { @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 54aa2170c782..901eec55257a 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 Pet(String name, Set photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -108,15 +108,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -227,7 +227,7 @@ public Pet status(StatusEnum status) { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -235,7 +235,7 @@ public StatusEnum getStatus() { * @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 ad83db00ffc3..15329f8cb124 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 ReadOnlyFirst bar(String bar) { @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 ReadOnlyFirst baz(String baz) { @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 9f6a0d214d6a..9002188cbf7b 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 ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPro @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 ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UP @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 ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowe @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 ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String prope @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 e13401f2a3b1..5cda5fbc2ed1 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 8e03f47541ab..0aa2038f01c4 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 Tag id(Long id) { @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 Tag name(String name) { @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 1f4462a7cf4b..2dbf6f2f0dbc 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 93db0d19fad6..a5f92d54e906 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 XmlItem attributeString(String attributeString) { @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 XmlItem attributeNumber(BigDecimal attributeNumber) { @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 XmlItem attributeInteger(Integer attributeInteger) { @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 XmlItem attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public XmlItem nameString(String nameString) { @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 XmlItem nameNumber(BigDecimal nameNumber) { @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 XmlItem nameInteger(Integer nameInteger) { @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 XmlItem nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public XmlItem prefixString(String prefixString) { @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 XmlItem prefixNumber(BigDecimal prefixNumber) { @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 XmlItem prefixInteger(Integer prefixInteger) { @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 XmlItem prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public XmlItem namespaceString(String namespaceString) { @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItem namespaceInteger(Integer namespaceInteger) { @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public XmlItem prefixNsString(String prefixNsString) { @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @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 2a381a8ed9cd..f4457252d99a 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 @@ 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 9e4d6733302e..4728b8bd5b95 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.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 37c819ce1a30..24ec5803a055 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.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 @@ default ResponseEntity createXmlItem( ) 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 @@ default ResponseEntity fakeOuterBooleanSerialize( ) 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 @@ default ResponseEntity fakeOuterCompositeSerialize( ) 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 @@ default ResponseEntity fakeOuterNumberSerialize( ) 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 @@ default ResponseEntity testEndpointParameters( ) 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 @@ 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 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 f9a00f8644a9..6e07cca9c0b0 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.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 99e3d1e8700e..1199985bb47d 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 @@ 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 199f7439ee8c..8f03a02174d8 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.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 6e24e0a563cd..e4438843df2f 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.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 @@ default ResponseEntity addPet( 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 @@ default ResponseEntity> findPetsByStatus( 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 819913bf9814..bcc8b880bc54 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.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 1e05fbf95dc6..750870e11e35 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 @@ 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 827d94d5b022..fe87b0dcd560 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.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 75e4c52b1da6..36c1e715423e 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 @@ 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 54f66378f57d..37c57bfdee74 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.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 11e620cf874a..eefd4977fc5d 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 @@ 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 91155dbaf4fd..bff127533b17 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.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 25e7edc6691b..773291ab5b9c 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 AdditionalPropertiesAnyType name(String name) { @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 f64b28e83217..5e3b764af70a 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 AdditionalPropertiesArray name(String name) { @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 d4ccb3cac529..c57bccf770df 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 AdditionalPropertiesBoolean name(String name) { @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 2872ccbec828..2589c1018d87 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -293,15 +293,15 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @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 AdditionalPropertiesClass anytype2(Object anytype2) { @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 AdditionalPropertiesClass anytype3(Object anytype3) { @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 4e023e5ac239..94a8cbcd6a6e 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 AdditionalPropertiesInteger name(String name) { @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 4925911430d0..ff57a4c19648 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 AdditionalPropertiesNumber name(String name) { @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 8271f56b65ee..deeb9fdddd0f 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 AdditionalPropertiesObject name(String name) { @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 2ee8c6968430..8753cbaea4f3 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 AdditionalPropertiesString name(String name) { @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 fd0137b53292..fd49ed0ccec6 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 Capitalization smallCamel(String smallCamel) { @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 Capitalization capitalCamel(String capitalCamel) { @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 Capitalization smallSnake(String smallSnake) { @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 Capitalization capitalSnake(String capitalSnake) { @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @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 Capitalization ATT_NAME(String ATT_NAME) { @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 1c38c1290c46..5ccb4eaba502 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 Cat(String className) { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -53,11 +53,11 @@ public Cat declawed(Boolean declawed) { @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 98bde299616c..4fda94ab15cc 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 Category(String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public Category id(Long id) { @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 4e03cee749d5..e46e02672204 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 ClassModel propertyClass(String propertyClass) { @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 3f16a03fdf62..133345b58ded 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 Client client(String 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 f9df4db38789..dc8dcaaac346 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 Dog(String className) { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public Dog breed(String breed) { @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 9773ea494676..6a1419957edd 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 static ArrayEnumEnum fromValue(String value) { @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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { @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 61abd2bd5d41..2da9188ff1ca 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 EnumTest(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public EnumTest enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { @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 EnumTest outerEnum(OuterEnum outerEnum) { @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 ed0112b13ad3..f749c4954d55 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 File sourceURI(String sourceURI) { @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 426e7f1f7351..344b4ab13647 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 FileSchemaTestClass file(File file) { @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 c59ee6475d11..a141053334fa 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 FormatTest(BigDecimal number, byte[] _byte, LocalDate date, String passwo this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public FormatTest integer(Integer integer) { @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 FormatTest int32(Integer int32) { @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 FormatTest int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public FormatTest _float(Float _float) { @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 FormatTest _double(Double _double) { @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 FormatTest string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @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 FormatTest uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { @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 a706e796c8f8..32df26a53291 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 HasOnlyReadOnly bar(String bar) { @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 HasOnlyReadOnly foo(String foo) { @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 337dfa4d5de4..dcc7a5b91655 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @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 1dba298e44e8..03a0d36c22bb 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 Model200Response name(Integer name) { @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 Model200Response propertyClass(String propertyClass) { @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 6ba366ec5289..a47a3421a484 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 dc06c29116f7..cdc49aefdb54 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 ModelList _123list(String _123list) { @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 959ff9d7995e..e23f9b70f1e8 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 ModelReturn _return(Integer _return) { @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 ce1f39d59bfa..5708fa3147e9 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { @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 Name property(String property) { @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 Name _123number(Integer _123number) { @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 1660dd786003..99de5c65a709 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 NumberOnly justNumber(BigDecimal justNumber) { @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 713bb66964a1..d2c42e403abf 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 59c8b16704a0..e69df693bede 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 OuterComposite myNumber(BigDecimal myNumber) { @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 OuterComposite myString(String myString) { @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 OuterComposite myBoolean(Boolean myBoolean) { @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 a8cae4716e71..f1a188bbc2dd 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -104,15 +104,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -220,11 +220,11 @@ public Pet status(StatusEnum status) { @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 ad83db00ffc3..15329f8cb124 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 ReadOnlyFirst bar(String bar) { @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 ReadOnlyFirst baz(String baz) { @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 3974286e2352..f1adbfde805f 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 8e03f47541ab..0aa2038f01c4 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 Tag id(Long id) { @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 Tag name(String name) { @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 1f4462a7cf4b..2dbf6f2f0dbc 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 93db0d19fad6..a5f92d54e906 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 XmlItem attributeString(String attributeString) { @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 XmlItem attributeNumber(BigDecimal attributeNumber) { @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 XmlItem attributeInteger(Integer attributeInteger) { @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 XmlItem attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public XmlItem nameString(String nameString) { @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 XmlItem nameNumber(BigDecimal nameNumber) { @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 XmlItem nameInteger(Integer nameInteger) { @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 XmlItem nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public XmlItem prefixString(String prefixString) { @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 XmlItem prefixNumber(BigDecimal prefixNumber) { @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 XmlItem prefixInteger(Integer prefixInteger) { @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 XmlItem prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public XmlItem namespaceString(String namespaceString) { @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItem namespaceInteger(Integer namespaceInteger) { @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public XmlItem prefixNsString(String prefixNsString) { @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @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 2a381a8ed9cd..f4457252d99a 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 @@ 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 9e4d6733302e..4728b8bd5b95 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.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 37c819ce1a30..24ec5803a055 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.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 @@ default ResponseEntity createXmlItem( ) 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 @@ default ResponseEntity fakeOuterBooleanSerialize( ) 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 @@ default ResponseEntity fakeOuterCompositeSerialize( ) 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 @@ default ResponseEntity fakeOuterNumberSerialize( ) 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 @@ default ResponseEntity testEndpointParameters( ) 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 @@ 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 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 f9a00f8644a9..6e07cca9c0b0 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.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 99e3d1e8700e..1199985bb47d 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 @@ 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 199f7439ee8c..8f03a02174d8 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.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 6e24e0a563cd..e4438843df2f 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.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 @@ default ResponseEntity addPet( 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 @@ default ResponseEntity> findPetsByStatus( 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 819913bf9814..bcc8b880bc54 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.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 1e05fbf95dc6..750870e11e35 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 @@ 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 827d94d5b022..fe87b0dcd560 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.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 75e4c52b1da6..36c1e715423e 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 @@ 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 54f66378f57d..37c57bfdee74 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.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 b1a099bade7c..10eb7a1525fe 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 @@ 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 a7b744cc73b9..fedd4b739200 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.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 25e7edc6691b..773291ab5b9c 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 AdditionalPropertiesAnyType name(String name) { @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 f64b28e83217..5e3b764af70a 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 AdditionalPropertiesArray name(String name) { @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 d4ccb3cac529..c57bccf770df 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 AdditionalPropertiesBoolean name(String name) { @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 2872ccbec828..2589c1018d87 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -293,15 +293,15 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @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 AdditionalPropertiesClass anytype2(Object anytype2) { @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 AdditionalPropertiesClass anytype3(Object anytype3) { @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 4e023e5ac239..94a8cbcd6a6e 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 AdditionalPropertiesInteger name(String name) { @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 4925911430d0..ff57a4c19648 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 AdditionalPropertiesNumber name(String name) { @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 8271f56b65ee..deeb9fdddd0f 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 AdditionalPropertiesObject name(String name) { @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 2ee8c6968430..8753cbaea4f3 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 AdditionalPropertiesString name(String name) { @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 fd0137b53292..fd49ed0ccec6 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 Capitalization smallCamel(String smallCamel) { @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 Capitalization capitalCamel(String capitalCamel) { @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 Capitalization smallSnake(String smallSnake) { @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 Capitalization capitalSnake(String capitalSnake) { @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @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 Capitalization ATT_NAME(String ATT_NAME) { @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 1c38c1290c46..5ccb4eaba502 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 Cat(String className) { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -53,11 +53,11 @@ public Cat declawed(Boolean declawed) { @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 98bde299616c..4fda94ab15cc 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 Category(String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public Category id(Long id) { @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 4e03cee749d5..e46e02672204 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 ClassModel propertyClass(String propertyClass) { @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 3f16a03fdf62..133345b58ded 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 Client client(String 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 f9df4db38789..dc8dcaaac346 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 Dog(String className) { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public Dog breed(String breed) { @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 9773ea494676..6a1419957edd 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 static ArrayEnumEnum fromValue(String value) { @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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { @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 61abd2bd5d41..2da9188ff1ca 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 EnumTest(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public EnumTest enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { @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 EnumTest outerEnum(OuterEnum outerEnum) { @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 ed0112b13ad3..f749c4954d55 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 File sourceURI(String sourceURI) { @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 426e7f1f7351..344b4ab13647 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 FileSchemaTestClass file(File file) { @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 c59ee6475d11..a141053334fa 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 FormatTest(BigDecimal number, byte[] _byte, LocalDate date, String passwo this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public FormatTest integer(Integer integer) { @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 FormatTest int32(Integer int32) { @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 FormatTest int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public FormatTest _float(Float _float) { @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 FormatTest _double(Double _double) { @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 FormatTest string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @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 FormatTest uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { @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 a706e796c8f8..32df26a53291 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 HasOnlyReadOnly bar(String bar) { @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 HasOnlyReadOnly foo(String foo) { @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 337dfa4d5de4..dcc7a5b91655 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @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 1dba298e44e8..03a0d36c22bb 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 Model200Response name(Integer name) { @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 Model200Response propertyClass(String propertyClass) { @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 6ba366ec5289..a47a3421a484 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 dc06c29116f7..cdc49aefdb54 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 ModelList _123list(String _123list) { @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 959ff9d7995e..e23f9b70f1e8 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 ModelReturn _return(Integer _return) { @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 ce1f39d59bfa..5708fa3147e9 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { @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 Name property(String property) { @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 Name _123number(Integer _123number) { @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 1660dd786003..99de5c65a709 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 NumberOnly justNumber(BigDecimal justNumber) { @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 713bb66964a1..d2c42e403abf 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 59c8b16704a0..e69df693bede 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 OuterComposite myNumber(BigDecimal myNumber) { @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 OuterComposite myString(String myString) { @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 OuterComposite myBoolean(Boolean myBoolean) { @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 a8cae4716e71..f1a188bbc2dd 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -104,15 +104,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -220,11 +220,11 @@ public Pet status(StatusEnum status) { @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 ad83db00ffc3..15329f8cb124 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 ReadOnlyFirst bar(String bar) { @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 ReadOnlyFirst baz(String baz) { @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 3974286e2352..f1adbfde805f 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 8e03f47541ab..0aa2038f01c4 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 Tag id(Long id) { @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 Tag name(String name) { @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 1f4462a7cf4b..2dbf6f2f0dbc 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 93db0d19fad6..a5f92d54e906 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 XmlItem attributeString(String attributeString) { @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 XmlItem attributeNumber(BigDecimal attributeNumber) { @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 XmlItem attributeInteger(Integer attributeInteger) { @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 XmlItem attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public XmlItem nameString(String nameString) { @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 XmlItem nameNumber(BigDecimal nameNumber) { @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 XmlItem nameInteger(Integer nameInteger) { @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 XmlItem nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public XmlItem prefixString(String prefixString) { @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 XmlItem prefixNumber(BigDecimal prefixNumber) { @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 XmlItem prefixInteger(Integer prefixInteger) { @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 XmlItem prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public XmlItem namespaceString(String namespaceString) { @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItem namespaceInteger(Integer namespaceInteger) { @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public XmlItem prefixNsString(String prefixNsString) { @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @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 d6f187bd8f95..644b3c76966e 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 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 7cacbd1ed68d..7afbe077af57 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 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 @@ default ResponseEntity createXmlItem( ) 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 @@ default ResponseEntity fakeOuterBooleanSerialize( ) 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 @@ default ResponseEntity fakeOuterCompositeSerialize( ) 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 @@ default ResponseEntity fakeOuterNumberSerialize( ) 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 @@ default ResponseEntity testEndpointParameters( ) 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 @@ 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 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 1c4aee0dcc74..54acd6fe00f9 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 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 394c3253db10..5428a84b081b 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 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 @@ default ResponseEntity addPet( 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 @@ default ResponseEntity> findPetsByStatus( 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 c544ff9cfb16..32e33fca3def 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 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 d21103f0cc01..a4d5fac20216 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 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 8f85a3c20cf7..84f2e532f875 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 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 25e7edc6691b..773291ab5b9c 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 AdditionalPropertiesAnyType name(String name) { @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 f64b28e83217..5e3b764af70a 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 AdditionalPropertiesArray name(String name) { @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 d4ccb3cac529..c57bccf770df 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 AdditionalPropertiesBoolean name(String name) { @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 2872ccbec828..2589c1018d87 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -293,15 +293,15 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @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 AdditionalPropertiesClass anytype2(Object anytype2) { @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 AdditionalPropertiesClass anytype3(Object anytype3) { @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 4e023e5ac239..94a8cbcd6a6e 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 AdditionalPropertiesInteger name(String name) { @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 4925911430d0..ff57a4c19648 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 AdditionalPropertiesNumber name(String name) { @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 8271f56b65ee..deeb9fdddd0f 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 AdditionalPropertiesObject name(String name) { @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 2ee8c6968430..8753cbaea4f3 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 AdditionalPropertiesString name(String name) { @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 fd0137b53292..fd49ed0ccec6 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 Capitalization smallCamel(String smallCamel) { @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 Capitalization capitalCamel(String capitalCamel) { @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 Capitalization smallSnake(String smallSnake) { @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 Capitalization capitalSnake(String capitalSnake) { @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @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 Capitalization ATT_NAME(String ATT_NAME) { @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 1c38c1290c46..5ccb4eaba502 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 Cat(String className) { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -53,11 +53,11 @@ public Cat declawed(Boolean declawed) { @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 98bde299616c..4fda94ab15cc 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 Category(String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public Category id(Long id) { @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 4e03cee749d5..e46e02672204 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 ClassModel propertyClass(String propertyClass) { @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 3f16a03fdf62..133345b58ded 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 Client client(String 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 f9df4db38789..dc8dcaaac346 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 Dog(String className) { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public Dog breed(String breed) { @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 9773ea494676..6a1419957edd 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 static ArrayEnumEnum fromValue(String value) { @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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { @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 61abd2bd5d41..2da9188ff1ca 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 EnumTest(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public EnumTest enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { @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 EnumTest outerEnum(OuterEnum outerEnum) { @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 ed0112b13ad3..f749c4954d55 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 File sourceURI(String sourceURI) { @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 426e7f1f7351..344b4ab13647 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 FileSchemaTestClass file(File file) { @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 c59ee6475d11..a141053334fa 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 FormatTest(BigDecimal number, byte[] _byte, LocalDate date, String passwo this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public FormatTest integer(Integer integer) { @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 FormatTest int32(Integer int32) { @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 FormatTest int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public FormatTest _float(Float _float) { @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 FormatTest _double(Double _double) { @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 FormatTest string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @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 FormatTest uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { @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 a706e796c8f8..32df26a53291 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 HasOnlyReadOnly bar(String bar) { @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 HasOnlyReadOnly foo(String foo) { @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 337dfa4d5de4..dcc7a5b91655 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @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 1dba298e44e8..03a0d36c22bb 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 Model200Response name(Integer name) { @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 Model200Response propertyClass(String propertyClass) { @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 6ba366ec5289..a47a3421a484 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 dc06c29116f7..cdc49aefdb54 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 ModelList _123list(String _123list) { @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 959ff9d7995e..e23f9b70f1e8 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 ModelReturn _return(Integer _return) { @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 ce1f39d59bfa..5708fa3147e9 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { @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 Name property(String property) { @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 Name _123number(Integer _123number) { @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 1660dd786003..99de5c65a709 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 NumberOnly justNumber(BigDecimal justNumber) { @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 713bb66964a1..d2c42e403abf 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 59c8b16704a0..e69df693bede 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 OuterComposite myNumber(BigDecimal myNumber) { @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 OuterComposite myString(String myString) { @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 OuterComposite myBoolean(Boolean myBoolean) { @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 a8cae4716e71..f1a188bbc2dd 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -104,15 +104,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -220,11 +220,11 @@ public Pet status(StatusEnum status) { @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 ad83db00ffc3..15329f8cb124 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 ReadOnlyFirst bar(String bar) { @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 ReadOnlyFirst baz(String baz) { @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 3974286e2352..f1adbfde805f 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 8e03f47541ab..0aa2038f01c4 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 Tag id(Long id) { @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 Tag name(String name) { @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 1f4462a7cf4b..2dbf6f2f0dbc 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 93db0d19fad6..a5f92d54e906 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 XmlItem attributeString(String attributeString) { @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 XmlItem attributeNumber(BigDecimal attributeNumber) { @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 XmlItem attributeInteger(Integer attributeInteger) { @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 XmlItem attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public XmlItem nameString(String nameString) { @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 XmlItem nameNumber(BigDecimal nameNumber) { @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 XmlItem nameInteger(Integer nameInteger) { @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 XmlItem nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public XmlItem prefixString(String prefixString) { @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 XmlItem prefixNumber(BigDecimal prefixNumber) { @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 XmlItem prefixInteger(Integer prefixInteger) { @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 XmlItem prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public XmlItem namespaceString(String namespaceString) { @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItem namespaceInteger(Integer namespaceInteger) { @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public XmlItem prefixNsString(String prefixNsString) { @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @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 d6f187bd8f95..644b3c76966e 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 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 7cacbd1ed68d..7afbe077af57 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 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 @@ default ResponseEntity createXmlItem( ) 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 @@ default ResponseEntity fakeOuterBooleanSerialize( ) 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 @@ default ResponseEntity fakeOuterCompositeSerialize( ) 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 @@ default ResponseEntity fakeOuterNumberSerialize( ) 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 @@ default ResponseEntity testEndpointParameters( ) 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 @@ 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 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 1c4aee0dcc74..54acd6fe00f9 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 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 394c3253db10..5428a84b081b 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 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 @@ default ResponseEntity addPet( 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 @@ default ResponseEntity> findPetsByStatus( 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 c544ff9cfb16..32e33fca3def 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 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 d21103f0cc01..a4d5fac20216 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 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 7b9766121c8d..8f7e1b7537d1 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 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 25e7edc6691b..773291ab5b9c 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 AdditionalPropertiesAnyType name(String name) { @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 f64b28e83217..5e3b764af70a 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 AdditionalPropertiesArray name(String name) { @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 d4ccb3cac529..c57bccf770df 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 AdditionalPropertiesBoolean name(String name) { @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 2872ccbec828..2589c1018d87 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -293,15 +293,15 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @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 AdditionalPropertiesClass anytype2(Object anytype2) { @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 AdditionalPropertiesClass anytype3(Object anytype3) { @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 4e023e5ac239..94a8cbcd6a6e 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 AdditionalPropertiesInteger name(String name) { @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 4925911430d0..ff57a4c19648 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 AdditionalPropertiesNumber name(String name) { @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 8271f56b65ee..deeb9fdddd0f 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 AdditionalPropertiesObject name(String name) { @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 2ee8c6968430..8753cbaea4f3 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 AdditionalPropertiesString name(String name) { @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 fd0137b53292..fd49ed0ccec6 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 Capitalization smallCamel(String smallCamel) { @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 Capitalization capitalCamel(String capitalCamel) { @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 Capitalization smallSnake(String smallSnake) { @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 Capitalization capitalSnake(String capitalSnake) { @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @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 Capitalization ATT_NAME(String ATT_NAME) { @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 1c38c1290c46..5ccb4eaba502 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 Cat(String className) { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -53,11 +53,11 @@ public Cat declawed(Boolean declawed) { @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 98bde299616c..4fda94ab15cc 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 Category(String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -50,11 +50,11 @@ public Category id(Long id) { @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 4e03cee749d5..e46e02672204 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 ClassModel propertyClass(String propertyClass) { @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 3f16a03fdf62..133345b58ded 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 Client client(String 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 f9df4db38789..dc8dcaaac346 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 Dog(String className) { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -53,11 +53,11 @@ public Dog breed(String breed) { @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 9773ea494676..6a1419957edd 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 static ArrayEnumEnum fromValue(String value) { @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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { @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 61abd2bd5d41..2da9188ff1ca 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 EnumTest(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public EnumTest enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { @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 EnumTest outerEnum(OuterEnum outerEnum) { @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 ed0112b13ad3..f749c4954d55 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 File sourceURI(String sourceURI) { @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 426e7f1f7351..344b4ab13647 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 FileSchemaTestClass file(File file) { @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 c59ee6475d11..a141053334fa 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 FormatTest(BigDecimal number, byte[] _byte, LocalDate date, String passwo this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public FormatTest integer(Integer integer) { @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 FormatTest int32(Integer int32) { @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 FormatTest int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public FormatTest _float(Float _float) { @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 FormatTest _double(Double _double) { @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 FormatTest string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @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 FormatTest uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { @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 a706e796c8f8..32df26a53291 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 HasOnlyReadOnly bar(String bar) { @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 HasOnlyReadOnly foo(String foo) { @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 337dfa4d5de4..dcc7a5b91655 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @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 1dba298e44e8..03a0d36c22bb 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 Model200Response name(Integer name) { @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 Model200Response propertyClass(String propertyClass) { @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 6ba366ec5289..a47a3421a484 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 dc06c29116f7..cdc49aefdb54 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 ModelList _123list(String _123list) { @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 959ff9d7995e..e23f9b70f1e8 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 ModelReturn _return(Integer _return) { @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 ce1f39d59bfa..5708fa3147e9 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { @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 Name property(String property) { @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 Name _123number(Integer _123number) { @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 1660dd786003..99de5c65a709 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 NumberOnly justNumber(BigDecimal justNumber) { @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 713bb66964a1..d2c42e403abf 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 59c8b16704a0..e69df693bede 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 OuterComposite myNumber(BigDecimal myNumber) { @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 OuterComposite myString(String myString) { @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 OuterComposite myBoolean(Boolean myBoolean) { @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 a8cae4716e71..f1a188bbc2dd 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -104,15 +104,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -220,11 +220,11 @@ public Pet status(StatusEnum status) { @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 ad83db00ffc3..15329f8cb124 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 ReadOnlyFirst bar(String bar) { @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 ReadOnlyFirst baz(String baz) { @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 3974286e2352..f1adbfde805f 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 8e03f47541ab..0aa2038f01c4 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 Tag id(Long id) { @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 Tag name(String name) { @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 1f4462a7cf4b..2dbf6f2f0dbc 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 93db0d19fad6..a5f92d54e906 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 XmlItem attributeString(String attributeString) { @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 XmlItem attributeNumber(BigDecimal attributeNumber) { @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 XmlItem attributeInteger(Integer attributeInteger) { @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 XmlItem attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -214,15 +214,15 @@ public XmlItem nameString(String nameString) { @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 XmlItem nameNumber(BigDecimal nameNumber) { @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 XmlItem nameInteger(Integer nameInteger) { @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 XmlItem nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -350,15 +350,15 @@ public XmlItem prefixString(String prefixString) { @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 XmlItem prefixNumber(BigDecimal prefixNumber) { @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 XmlItem prefixInteger(Integer prefixInteger) { @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 XmlItem prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -486,15 +486,15 @@ public XmlItem namespaceString(String namespaceString) { @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItem namespaceInteger(Integer namespaceInteger) { @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -622,15 +622,15 @@ public XmlItem prefixNsString(String prefixNsString) { @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @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 f3b4380482e9..919b7720b336 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.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 d64c22621a74..a031551d81a0 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 Category id(Long id) { @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 Category name(String name) { @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 159c9942618d..53239483e971 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 9e80fbd4f45c..5cd296037da4 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 Order complete(Boolean complete) { @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 0eab9f34e797..ec4be865e9b3 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 Pet(String name, List photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -103,15 +103,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -219,11 +219,11 @@ public Pet status(StatusEnum status) { @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 f7dd6a14494d..e8b67439e58c 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 Tag id(Long id) { @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 Tag name(String name) { @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 98c76f55ce9f..a56fd2302474 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 11b277874820..19216bce9fa4 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 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 907e29eb80e8..c4dafcc55eb6 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 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 888f4b118ab0..ce0c01322a3a 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 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 09899e99387c..8d4935125aca 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 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 da1b1ec7186c..4e10b2ec59d7 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 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 0448069b51bd..d5689ca159c8 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 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 ed24327fe19d..fc6d2944ab58 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.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 f0d046c53c84..73ef732f6161 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.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 @@ default ResponseEntity createXmlItem( ) 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 @@ default ResponseEntity fakeOuterBooleanSerialize( ) 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 @@ default ResponseEntity fakeOuterCompositeSerialize( ) 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 @@ default ResponseEntity fakeOuterNumberSerialize( ) 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 @@ default ResponseEntity testEndpointParameters( ) 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 @@ 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_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 60b9359c3244..c34d0aa6dc2a 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.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 618af63bbe0b..2717f4be48c9 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.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 @@ default ResponseEntity addPet( 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 f9f9b03a46a2..f5bb1c6ede4a 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.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 6fc4b46cc38e..26935cab59b2 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.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 bcdcd9708f6d..64831ee0d5ee 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 AdditionalPropertiesAnyType name(String name) { @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 ffacc75fd1f8..bdadb8baa032 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 AdditionalPropertiesArray name(String name) { @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 412d6c37c19b..9eb5692c9f36 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 AdditionalPropertiesBoolean name(String name) { @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 d141cfa24fa4..0aa96a00be98 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -295,11 +295,11 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @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 void setAnytype2(JsonNullable anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -335,11 +335,11 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @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 381fce5a53a0..1117f1d60897 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 AdditionalPropertiesInteger name(String name) { @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 ff99ab35528d..e0382f90319f 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 AdditionalPropertiesNumber name(String name) { @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 4546f0e714ce..d89fbdb58e03 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 AdditionalPropertiesObject name(String name) { @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 724cc597b54f..bcd804b55539 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 AdditionalPropertiesString name(String name) { @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 f060c2b2993a..8b270de5f46a 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 BigCat(String className) { super(className); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -92,11 +92,11 @@ public BigCat kind(KindEnum kind) { @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 4a936ba43add..7f1b0fcc60d9 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 Capitalization smallCamel(String smallCamel) { @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 Capitalization capitalCamel(String capitalCamel) { @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 Capitalization smallSnake(String smallSnake) { @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 Capitalization capitalSnake(String capitalSnake) { @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 Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @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 Capitalization ATT_NAME(String ATT_NAME) { @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 d994e5f9066f..eb82ccb3b1ac 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 Cat(String className) { super(className); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -60,11 +60,11 @@ public Cat declawed(Boolean declawed) { @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 5e702570ef5b..b0848ce5c0f0 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 Category(String name) { this.name = name; } - public Category id(Long id) { + public Category id(@Nullable Long id) { this.id = id; return this; } @@ -49,11 +49,11 @@ public Category id(Long id) { @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 c330ed998aa7..71d49b5e272b 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 ChildWithNullable otherProperty(String otherProperty) { @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 c983a118dd08..12e0278c1ed3 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 ClassModel propertyClass(String propertyClass) { @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 6cd3765df80d..2bab12158669 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 Client client(String 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 405ff3a2f8da..9607ab9e67c1 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 Dog(String className) { super(className); } - public Dog breed(String breed) { + public Dog breed(@Nullable String breed) { this.breed = breed; return this; } @@ -52,11 +52,11 @@ public Dog breed(String breed) { @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 1288cd481b60..b11ea6a46be0 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 static ArrayEnumEnum fromValue(String value) { @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 EnumArrays justSymbol(JustSymbolEnum justSymbol) { @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 17a1373944f7..9179aea5dda6 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 EnumTest(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -203,11 +203,11 @@ public EnumTest enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -243,15 +243,15 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTest enumNumber(EnumNumberEnum enumNumber) { @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 EnumTest outerEnum(OuterEnum outerEnum) { @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 f0c3d0c1e375..95fb7a82b1a7 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 File sourceURI(String sourceURI) { @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 d203e1d91b0f..1ddb2fe887c6 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 FileSchemaTestClass file(File file) { @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 53589dd55d67..8ad02eee3489 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 FormatTest(BigDecimal number, byte[] _byte, LocalDate date, String passwo this.password = password; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -88,15 +88,15 @@ public FormatTest integer(Integer integer) { @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 FormatTest int32(Integer int32) { @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 FormatTest int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@Nullable Float _float) { this._float = _float; return this; } @@ -174,15 +174,15 @@ public FormatTest _float(Float _float) { @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 FormatTest _double(Double _double) { @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 FormatTest string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTest binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -296,15 +296,15 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @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 FormatTest uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -356,11 +356,11 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { @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 32c271474728..159b35336455 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 HasOnlyReadOnly bar(String bar) { @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 HasOnlyReadOnly foo(String foo) { @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 86633efced4d..b8793571ccc5 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 MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @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 3ac52472199c..b3f90f9ed2a2 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 Model200Response name(Integer name) { @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 Model200Response propertyClass(String propertyClass) { @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 473efd429ddf..8e4342fc7251 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 ModelApiResponse code(Integer code) { @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 ModelApiResponse type(String type) { @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 ModelApiResponse message(String message) { @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 076188564e15..8a8e49ef8d00 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 ModelList _123list(String _123list) { @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 f6b0bb8cec6c..504129bd8b98 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 ModelReturn _return(Integer _return) { @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 8e5a40df4593..8656a1355a01 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 void setName(Integer 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 Name snakeCase(Integer snakeCase) { @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 Name property(String property) { @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 Name _123number(Integer _123number) { @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 ca7505a88aa1..f9f403c89c83 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 NumberOnly justNumber(BigDecimal justNumber) { @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 c99b6325dbd0..f5e859d719af 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 static StatusEnum fromValue(String value) { 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 Order id(Long id) { @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 Order petId(Long petId) { @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 Order quantity(Integer quantity) { @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 Order shipDate(OffsetDateTime shipDate) { @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 Order status(StatusEnum status) { @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 cd87e84bac29..d1d5a61727ae 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 OuterComposite myNumber(BigDecimal myNumber) { @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 OuterComposite myString(String myString) { @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 OuterComposite myBoolean(Boolean myBoolean) { @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 64eceeabd5ab..27414353c464 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 static TypeEnum fromValue(String value) { 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 ParentWithNullable type(TypeEnum type) { @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 4464fb387e82..d69edf48bcef 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 Pet(String name, Set photoUrls) { this.photoUrls = photoUrls; } - public Pet id(Long id) { + public Pet id(@Nullable Long id) { this.id = id; return this; } @@ -107,15 +107,15 @@ public Pet id(Long id) { @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 Pet category(Category category) { @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 void setTags(List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -226,7 +226,7 @@ public Pet status(StatusEnum status) { @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 StatusEnum getStatus() { * @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 b9507e27242d..615680343137 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 ReadOnlyFirst bar(String bar) { @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 ReadOnlyFirst baz(String baz) { @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 6a624ab527aa..a3222f290020 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 ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPro @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 ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UP @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 ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowe @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 ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String prope @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 75025716e05e..c6962824add2 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 797f001f46bd..dfc9833d4848 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 Tag id(Long id) { @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 Tag name(String name) { @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 0476d3f2c33e..4ecb10bf3207 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 User id(Long id) { @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 User username(String username) { @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 User firstName(String firstName) { @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 User lastName(String lastName) { @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 User email(String email) { @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 User password(String password) { @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 User phone(String phone) { @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 User userStatus(Integer userStatus) { @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 7359dcb99707..fdd2c804d168 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 XmlItem attributeString(String attributeString) { @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 XmlItem attributeNumber(BigDecimal attributeNumber) { @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 XmlItem attributeInteger(Integer attributeInteger) { @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 XmlItem attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -213,15 +213,15 @@ public XmlItem nameString(String nameString) { @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 XmlItem nameNumber(BigDecimal nameNumber) { @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 XmlItem nameInteger(Integer nameInteger) { @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 XmlItem nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -349,15 +349,15 @@ public XmlItem prefixString(String prefixString) { @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 XmlItem prefixNumber(BigDecimal prefixNumber) { @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 XmlItem prefixInteger(Integer prefixInteger) { @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 XmlItem prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -485,15 +485,15 @@ public XmlItem namespaceString(String namespaceString) { @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 XmlItem namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItem namespaceInteger(Integer namespaceInteger) { @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 XmlItem namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -621,15 +621,15 @@ public XmlItem prefixNsString(String prefixNsString) { @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 XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItem prefixNsInteger(Integer prefixNsInteger) { @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 XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @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 38e970ec525f..c5e04cd7e3ac 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 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 84d714cc6982..06ae789b73b2 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 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 @@ default ResponseEntity createXmlItem( ) 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 @@ default ResponseEntity fakeOuterBooleanSerialize( ) 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 @@ default ResponseEntity fakeOuterCompositeSerialize( ) 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 @@ default ResponseEntity fakeOuterNumberSerialize( ) 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 @@ default ResponseEntity testEndpointParameters( ) 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 @@ 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 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 124c4d6c8460..d35b55bdc58c 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 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 654c979a2069..74c03df139a1 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 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 @@ default ResponseEntity addPet( 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 d96806c441f3..24ba242e44fd 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 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 a9287f67dc0a..2d8a48c3a0d9 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 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 46a6f64b671d..605c4a7d891e 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 AdditionalPropertiesAnyTypeDto name(String name) { @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 c17815cad744..8adfe2a31a69 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 AdditionalPropertiesArrayDto name(String name) { @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 f38ba9d18547..e862a5fe28d3 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 AdditionalPropertiesBooleanDto name(String name) { @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 ce16f67142bb..f0d6031a7f96 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 void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClassDto anytype1(Object anytype1) { + public AdditionalPropertiesClassDto anytype1(@Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -298,11 +298,11 @@ public AdditionalPropertiesClassDto anytype1(Object anytype1) { @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 void setAnytype2(JsonNullable anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClassDto anytype3(Object anytype3) { + public AdditionalPropertiesClassDto anytype3(@Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -338,11 +338,11 @@ public AdditionalPropertiesClassDto anytype3(Object anytype3) { @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 d4efa2729c7e..a96aea550cd3 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 AdditionalPropertiesIntegerDto name(String name) { @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 5d6815646272..7d35a0cbf11a 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 AdditionalPropertiesNumberDto name(String name) { @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 e1b65fb4d03d..b1dc515791b6 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 AdditionalPropertiesObjectDto name(String name) { @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 874264cbf6b3..a9f1a7ac7631 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 AdditionalPropertiesStringDto name(String name) { @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 205e69cb4cd8..68f4eac53a1c 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 ApiResponseDto code(Integer code) { @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 ApiResponseDto type(String type) { @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 ApiResponseDto message(String message) { @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 daaa4da2980c..750767aa025e 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 BigCatDto(String className) { super(className); } - public BigCatDto kind(KindEnum kind) { + public BigCatDto kind(@Nullable KindEnum kind) { this.kind = kind; return this; } @@ -95,11 +95,11 @@ public BigCatDto kind(KindEnum kind) { @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 931e99e300a7..c6a064d35486 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 CapitalizationDto smallCamel(String smallCamel) { @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 CapitalizationDto capitalCamel(String capitalCamel) { @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 CapitalizationDto smallSnake(String smallSnake) { @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 CapitalizationDto capitalSnake(String capitalSnake) { @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 CapitalizationDto scAETHFlowPoints(String scAETHFlowPoints) { @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 CapitalizationDto ATT_NAME(String ATT_NAME) { @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 064bbd3d153d..3f8cfff2b39f 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 CatDto(String className) { super(className); } - public CatDto declawed(Boolean declawed) { + public CatDto declawed(@Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -62,11 +62,11 @@ public CatDto declawed(Boolean declawed) { @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 2c54036e28eb..25688b3a0955 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 CategoryDto(String name) { this.name = name; } - public CategoryDto id(Long id) { + public CategoryDto id(@Nullable Long id) { this.id = id; return this; } @@ -52,11 +52,11 @@ public CategoryDto id(Long id) { @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 6e30596e7ac7..b88234169de9 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 ChildWithNullableDto otherProperty(String otherProperty) { @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 485b9d08ce2b..e89c04a53855 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 ClassModelDto propertyClass(String propertyClass) { @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 e6e094420cb8..551e67e78536 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 ClientDto client(String 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/src/main/java/org/openapitools/model/DogDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/DogDto.java index 8d8be0ad32a3..a809e876b52a 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 DogDto(String className) { super(className); } - public DogDto breed(String breed) { + public DogDto breed(@Nullable String breed) { this.breed = breed; return this; } @@ -55,11 +55,11 @@ public DogDto breed(String breed) { @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 4a79d9465817..396bcdee6f3d 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 static ArrayEnumEnum fromValue(String value) { @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 EnumArraysDto justSymbol(JustSymbolEnum justSymbol) { @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 72e42e5403a8..9f448708fe9e 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 EnumTestDto(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTestDto enumString(EnumStringEnum enumString) { + public EnumTestDto enumString(@Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -204,11 +204,11 @@ public EnumTestDto enumString(EnumStringEnum enumString) { @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 void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTestDto enumInteger(EnumIntegerEnum enumInteger) { + public EnumTestDto enumInteger(@Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -244,15 +244,15 @@ public EnumTestDto enumInteger(EnumIntegerEnum enumInteger) { @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 EnumTestDto enumNumber(EnumNumberEnum enumNumber) { @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 EnumTestDto outerEnum(OuterEnumDto outerEnum) { @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 e6679c18dc8b..1b014a809333 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 FileDto sourceURI(String sourceURI) { @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 b49025f7829c..ecf436c828ff 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 FileSchemaTestClassDto file(FileDto file) { @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 42b3c7c75df2..2257b318987c 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 FormatTestDto(BigDecimal number, byte[] _byte, LocalDate date, String pas this.password = password; } - public FormatTestDto integer(Integer integer) { + public FormatTestDto integer(@Nullable Integer integer) { this.integer = integer; return this; } @@ -89,15 +89,15 @@ public FormatTestDto integer(Integer integer) { @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 FormatTestDto int32(Integer int32) { @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 FormatTestDto int64(Long int64) { @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 void setNumber(BigDecimal number) { this.number = number; } - public FormatTestDto _float(Float _float) { + public FormatTestDto _float(@Nullable Float _float) { this._float = _float; return this; } @@ -175,15 +175,15 @@ public FormatTestDto _float(Float _float) { @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 FormatTestDto _double(Double _double) { @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 FormatTestDto string(String string) { @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 void setByte(byte[] _byte) { 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 FormatTestDto binary(org.springframework.core.io.Resource binary) { @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 void setDate(LocalDate date) { this.date = date; } - public FormatTestDto dateTime(OffsetDateTime dateTime) { + public FormatTestDto dateTime(@Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -297,15 +297,15 @@ public FormatTestDto dateTime(OffsetDateTime dateTime) { @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 FormatTestDto uuid(UUID uuid) { @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 void setPassword(String password) { this.password = password; } - public FormatTestDto bigDecimal(BigDecimal bigDecimal) { + public FormatTestDto bigDecimal(@Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -357,11 +357,11 @@ public FormatTestDto bigDecimal(BigDecimal bigDecimal) { @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 770a3760919c..e50035d4544d 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 HasOnlyReadOnlyDto bar(String bar) { @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 HasOnlyReadOnlyDto foo(String foo) { @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 005fe326fefe..7ab4e86385f1 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 ListDto _123List(String _123List) { @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 5511f09dca9f..73067aca0f10 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 MixedPropertiesAndAdditionalPropertiesClassDto uuid(UUID uuid) { @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 MixedPropertiesAndAdditionalPropertiesClassDto dateTime(OffsetDateTime da @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 12938f04fff1..826bd50cfcf5 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 Model200ResponseDto name(Integer name) { @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 Model200ResponseDto propertyClass(String propertyClass) { @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 9781abad2413..342fcad22a61 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 void setName(Integer name) { this.name = name; } - public NameDto snakeCase(Integer snakeCase) { + public NameDto snakeCase(@Nullable Integer snakeCase) { this.snakeCase = snakeCase; return this; } @@ -77,15 +77,15 @@ public NameDto snakeCase(Integer snakeCase) { @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 NameDto property(String property) { @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 NameDto _123Number(Integer _123Number) { @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 d0a379a126a2..a0264b1f7dae 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 NumberOnlyDto justNumber(BigDecimal justNumber) { @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 4d45917f4e8b..1ba747c810c1 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 static StatusEnum fromValue(String value) { 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 OrderDto id(Long id) { @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 OrderDto petId(Long petId) { @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 OrderDto quantity(Integer quantity) { @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 OrderDto shipDate(OffsetDateTime shipDate) { @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 OrderDto status(StatusEnum status) { @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 37c006c13f8c..a093c7eebc93 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 OuterCompositeDto myNumber(BigDecimal myNumber) { @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 OuterCompositeDto myString(String myString) { @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 OuterCompositeDto myBoolean(Boolean myBoolean) { @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 4da3607f5608..ba805bb2cc0c 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 static TypeEnum fromValue(String value) { 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 ParentWithNullableDto type(TypeEnum type) { @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 38f0451f4ee0..ea1c5cd1690c 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 PetDto(String name, Set photoUrls) { this.photoUrls = photoUrls; } - public PetDto id(Long id) { + public PetDto id(@Nullable Long id) { this.id = id; return this; } @@ -110,15 +110,15 @@ public PetDto id(Long id) { @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 PetDto category(CategoryDto category) { @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 void setTags(List<@Valid TagDto> tags) { this.tags = tags; } - public PetDto status(StatusEnum status) { + public PetDto status(@Nullable StatusEnum status) { this.status = status; return this; } @@ -229,7 +229,7 @@ public PetDto status(StatusEnum status) { @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated - public StatusEnum getStatus() { + public @Nullable StatusEnum getStatus() { return status; } @@ -237,7 +237,7 @@ public StatusEnum getStatus() { * @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 9cd94c351055..509a8e28f8aa 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 ReadOnlyFirstDto bar(String bar) { @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 ReadOnlyFirstDto baz(String baz) { @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 73202729b88a..0125a7deae0c 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 ResponseObjectWithDifferentFieldNamesDto normalPropertyName(String normal @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 ResponseObjectWithDifferentFieldNamesDto UPPER_CASE_PROPERTY_SNAKE(String @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 ResponseObjectWithDifferentFieldNamesDto lowerCasePropertyDashes(String l @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 ResponseObjectWithDifferentFieldNamesDto propertyNameWithSpaces(String pr @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 2e20ddb471bc..f4003fad328a 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 ReturnDto _return(Integer _return) { @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 a6a9a85a9c7a..89e4b64772a5 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 3256dc95fd11..0a5b474ba21b 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 TagDto id(Long id) { @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 TagDto name(String name) { @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 53c318e61204..e5936d5031b5 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 UserDto id(Long id) { @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 UserDto username(String username) { @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 UserDto firstName(String firstName) { @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 UserDto lastName(String lastName) { @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 UserDto email(String email) { @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 UserDto password(String password) { @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 UserDto phone(String phone) { @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 UserDto userStatus(Integer userStatus) { @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 495da55cb196..61948f5f43eb 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 XmlItemDto attributeString(String attributeString) { @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 XmlItemDto attributeNumber(BigDecimal attributeNumber) { @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 XmlItemDto attributeInteger(Integer attributeInteger) { @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 XmlItemDto attributeBoolean(Boolean attributeBoolean) { @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 void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItemDto nameString(String nameString) { + public XmlItemDto nameString(@Nullable String nameString) { this.nameString = nameString; return this; } @@ -216,15 +216,15 @@ public XmlItemDto nameString(String nameString) { @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 XmlItemDto nameNumber(BigDecimal nameNumber) { @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 XmlItemDto nameInteger(Integer nameInteger) { @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 XmlItemDto nameBoolean(Boolean nameBoolean) { @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 void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItemDto prefixString(String prefixString) { + public XmlItemDto prefixString(@Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -352,15 +352,15 @@ public XmlItemDto prefixString(String prefixString) { @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 XmlItemDto prefixNumber(BigDecimal prefixNumber) { @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 XmlItemDto prefixInteger(Integer prefixInteger) { @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 XmlItemDto prefixBoolean(Boolean prefixBoolean) { @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 void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItemDto namespaceString(String namespaceString) { + public XmlItemDto namespaceString(@Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -488,15 +488,15 @@ public XmlItemDto namespaceString(String namespaceString) { @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 XmlItemDto namespaceNumber(BigDecimal namespaceNumber) { @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 XmlItemDto namespaceInteger(Integer namespaceInteger) { @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 XmlItemDto namespaceBoolean(Boolean namespaceBoolean) { @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 void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItemDto prefixNsString(String prefixNsString) { + public XmlItemDto prefixNsString(@Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -624,15 +624,15 @@ public XmlItemDto prefixNsString(String prefixNsString) { @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 XmlItemDto prefixNsNumber(BigDecimal prefixNsNumber) { @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 XmlItemDto prefixNsInteger(Integer prefixNsInteger) { @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 XmlItemDto prefixNsBoolean(Boolean prefixNsBoolean) { @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; }